Re: [PATCH 1/2] input: clps711x-keypad: Switch to use syscon_regmap_lookup_by_phandle()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>Воскресенье, 23 декабря 2018, 21:15 +03:00 от Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>:
>
>On Sat, Dec 22, 2018 at 06:54:34PM +0300, Alexander Shiyan wrote:
>> As mentioned in the patch bdb0066df96e ("mfd: syscon: Decouple syscon
>> interface from platform devices"), we need to switch to using the
>> syscon_regmap_lookup_by_phandle() function. This patch makes this change.
>> 
>> Signed-off-by: Alexander Shiyan < shc_work@xxxxxxx >
>> ---
>>  drivers/input/keyboard/clps711x-keypad.c | 3 +--
>>  1 file changed, 1 insertion(+), 2 deletions(-)
>> 
>> diff --git a/drivers/input/keyboard/clps711x-keypad.c b/drivers/input/keyboard/clps711x-keypad.c
>> index e319f74..f7f49da 100644
>> --- a/drivers/input/keyboard/clps711x-keypad.c
>> +++ b/drivers/input/keyboard/clps711x-keypad.c
>> @@ -100,8 +100,7 @@ static int clps711x_keypad_probe(struct platform_device *pdev)
>>  if (!priv)
>>  return -ENOMEM;
>> 
>> -priv->syscon =
>> -syscon_regmap_lookup_by_compatible("cirrus,ep7209-syscon1");
>> +priv->syscon = syscon_regmap_lookup_by_phandle(np, "syscon");
>
>Do we care about compatibility with old DTSes that do not have syscon
>phandle in the keypad descriptor?

Hello.

There are no users for this driver in current kernel.
The patch for adding bindings (with syscon phandle) is submitted by me recently.

---




[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux