2022-11-19 01:12:33

by Uwe Kleine-König

[permalink] [raw]
Subject: [PATCH 192/606] Input: adp5588-keys - Convert to i2c's .probe_new()

From: Uwe Kleine-König <[email protected]>

The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.

Signed-off-by: Uwe Kleine-König <[email protected]>
---
drivers/input/keyboard/adp5588-keys.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/input/keyboard/adp5588-keys.c b/drivers/input/keyboard/adp5588-keys.c
index 7cd83c8e7110..72ae5ce72956 100644
--- a/drivers/input/keyboard/adp5588-keys.c
+++ b/drivers/input/keyboard/adp5588-keys.c
@@ -718,8 +718,7 @@ static void adp5588_disable_regulator(void *reg)
regulator_disable(reg);
}

-static int adp5588_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int adp5588_probe(struct i2c_client *client)
{
struct adp5588_kpad *kpad;
struct input_dev *input;
@@ -867,7 +866,7 @@ static struct i2c_driver adp5588_driver = {
.of_match_table = adp5588_of_match,
.pm = pm_sleep_ptr(&adp5588_dev_pm_ops),
},
- .probe = adp5588_probe,
+ .probe_new = adp5588_probe,
.remove = adp5588_remove,
.id_table = adp5588_id,
};
--
2.38.1



2022-11-21 10:08:21

by Hennerich, Michael

[permalink] [raw]
Subject: RE: [PATCH 192/606] Input: adp5588-keys - Convert to i2c's .probe_new()



> -----Original Message-----
> From: Uwe Kleine-König <[email protected]>
> Sent: Freitag, 18. November 2022 23:39
> To: Angel Iglesias <[email protected]>; Lee Jones
> <[email protected]>; Grant Likely <[email protected]>; Wolfram
> Sang <[email protected]>; Hennerich, Michael
> <[email protected]>; Dmitry Torokhov
> <[email protected]>
> Cc: [email protected]; [email protected]; Uwe Kleine-König
> <[email protected]>; [email protected]; linux-
> [email protected]
> Subject: [PATCH 192/606] Input: adp5588-keys - Convert to i2c's
> .probe_new()
>
>
> From: Uwe Kleine-König <[email protected]>
>
> The probe function doesn't make use of the i2c_device_id * parameter so it
> can be trivially converted.
>
> Signed-off-by: Uwe Kleine-König <[email protected]>

Acked-by: Michael Hennerich <[email protected]>

> ---
> drivers/input/keyboard/adp5588-keys.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/input/keyboard/adp5588-keys.c
> b/drivers/input/keyboard/adp5588-keys.c
> index 7cd83c8e7110..72ae5ce72956 100644
> --- a/drivers/input/keyboard/adp5588-keys.c
> +++ b/drivers/input/keyboard/adp5588-keys.c
> @@ -718,8 +718,7 @@ static void adp5588_disable_regulator(void *reg)
> regulator_disable(reg);
> }
>
> -static int adp5588_probe(struct i2c_client *client,
> - const struct i2c_device_id *id)
> +static int adp5588_probe(struct i2c_client *client)
> {
> struct adp5588_kpad *kpad;
> struct input_dev *input;
> @@ -867,7 +866,7 @@ static struct i2c_driver adp5588_driver = {
> .of_match_table = adp5588_of_match,
> .pm = pm_sleep_ptr(&adp5588_dev_pm_ops),
> },
> - .probe = adp5588_probe,
> + .probe_new = adp5588_probe,
> .remove = adp5588_remove,
> .id_table = adp5588_id,
> };
> --
> 2.38.1

2022-12-02 11:29:14

by Uwe Kleine-König

[permalink] [raw]
Subject: Re: [PATCH 192/606] Input: adp5588-keys - Convert to i2c's .probe_new()

Hello Dmitry,

On Fri, Nov 18, 2022 at 11:38:46PM +0100, Uwe Kleine-K?nig wrote:
> From: Uwe Kleine-K?nig <[email protected]>
>
> The probe function doesn't make use of the i2c_device_id * parameter so it
> can be trivially converted.
>
> Signed-off-by: Uwe Kleine-K?nig <[email protected]>

I didn't get any feedback from your side about this patch set.

In case the problem is "only" to get the input patches out of this
series, I recommend:

b4 am -l -s -P191-267 [email protected]

Best regards
Uwe

--
Pengutronix e.K. | Uwe Kleine-K?nig |
Industrial Linux Solutions | https://www.pengutronix.de/ |


Attachments:
(No filename) (738.00 B)
signature.asc (499.00 B)
Download all attachments

2022-12-02 23:34:28

by Dmitry Torokhov

[permalink] [raw]
Subject: Re: [PATCH 192/606] Input: adp5588-keys - Convert to i2c's .probe_new()

On Fri, Dec 02, 2022 at 11:52:27AM +0100, Uwe Kleine-K?nig wrote:
> Hello Dmitry,
>
> On Fri, Nov 18, 2022 at 11:38:46PM +0100, Uwe Kleine-K?nig wrote:
> > From: Uwe Kleine-K?nig <[email protected]>
> >
> > The probe function doesn't make use of the i2c_device_id * parameter so it
> > can be trivially converted.
> >
> > Signed-off-by: Uwe Kleine-K?nig <[email protected]>
>
> I didn't get any feedback from your side about this patch set.
>
> In case the problem is "only" to get the input patches out of this
> series, I recommend:
>
> b4 am -l -s -P191-267 [email protected]

Thanks, I was trying to figure out how to consume the relevant portion.
Applied now.

--
Dmitry