Re: [PATCH v2] gpio: mockup: use device properties instead of platform_data
From: Linus Walleij
Date: Wed Oct 03 2018 - 03:54:53 EST
On Tue, Sep 25, 2018 at 1:29 PM Bartosz Golaszewski <brgl@xxxxxxxx> wrote:
> Some users want to introduce device tree support to the mockup driver.
> Let's make it easier by switching to using generic device properties.
> The driver stays compatible with previous use cases and after this
> conversion there'll be no need to change the way probing of mockup
> GPIO chips works.
>
> Tested with libgpiod test suite.
>
> Signed-off-by: Bartosz Golaszewski <brgl@xxxxxxxx>
> ---
> v1 -> v2:
> - dropped an unnecessary check when reading the base gpio number property
Patch applied.
Vincent, could you rebase your work on top of this
when/if you resend?
Yours,
Linus Walleij