Uwe Kleine-König
d58fa987be
crypto: atmel - Drop unused id parameter from atmel_i2c_probe()
...
id is unused in atmel_i2c_probe() and the callers have extra efforts to
determine the right parameter. So drop the parameter simplifying both
atmel_i2c_probe() and its callers.
Signed-off-by: Uwe Kleine-König <[email protected] >
Reviewed-by: Tudor Ambarus <[email protected] >
Signed-off-by: Herbert Xu <[email protected] >
2023-02-10 17:20:19 +08:00
Uwe Kleine-König
3074742317
fbdev: matroxfb: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Helge Deller <[email protected] >
2022-12-14 20:01:50 +01:00
Uwe Kleine-König
5011a11029
thermal/drivers/imx_sc_thermal: Drop empty platform remove function
...
A remove callback just returning 0 is equivalent to no remove callback
at all. So drop the useless function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Daniel Lezcano <[email protected] >
2022-12-14 15:27:30 +01:00
Uwe Kleine-König
959ecba7f5
mfd: rohm-bd9576: Convert to i2c's .probe_new()
...
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: Matti Vaittinen <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-08 12:36:49 +00:00
Uwe Kleine-König
810199f731
i2c: xiic: Make sure to disable clock on .remove()
...
If for whatever reasons pm_runtime_resume_and_get() failed, .remove() is
exited early, the clock isn't freed and runtime PM state isn't reset.
The right thing to do however is to free all resources that don't need
HW access after a problem with runtime PM. Also issue a warning in that
case and return 0 to suppress a less helpful warning by the driver core.
Signed-off-by: Uwe Kleine-König <[email protected] >
Acked-by: Michal Simek <[email protected] >
Signed-off-by: Wolfram Sang <[email protected] >
2022-12-07 21:04:40 +01:00
Uwe Kleine-König
0de796b604
backlight: tosa: Convert to i2c's .probe_new()
...
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] >
Reviewed-by: Daniel Thompson <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:33:03 +00:00
Uwe Kleine-König
5867af29c8
backlight: lv5207lp: Convert to i2c's .probe_new()
...
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] >
Reviewed-by: Daniel Thompson <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:33:03 +00:00
Uwe Kleine-König
60aa101b2f
backlight: lp855x: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Reviewed-by: Daniel Thompson <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:33:03 +00:00
Uwe Kleine-König
3065efe8af
backlight: lm3639: Convert to i2c's .probe_new()
...
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] >
Reviewed-by: Daniel Thompson <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:33:02 +00:00
Uwe Kleine-König
b2d4f93f89
backlight: lm3630a: Convert to i2c's .probe_new()
...
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] >
Reviewed-by: Daniel Thompson <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:33:02 +00:00
Uwe Kleine-König
58d2b900c7
backlight: bd6107: Convert to i2c's .probe_new()
...
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] >
Reviewed-by: Daniel Thompson <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:33:02 +00:00
Uwe Kleine-König
64ec276981
backlight: arcxcnn: Convert to i2c's .probe_new()
...
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] >
Reviewed-by: Daniel Thompson <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:33:02 +00:00
Uwe Kleine-König
e78b28b8ab
backlight: adp8870: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Reviewed-by: Daniel Thompson <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:33:02 +00:00
Uwe Kleine-König
f57c2eaaed
backlight: adp8860: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Reviewed-by: Daniel Thompson <[email protected] >
Acked-by: Michael Hennerich <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:33:02 +00:00
Uwe Kleine-König
54f872baf6
mfd: wm8994-core: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Acked-by: Charles Keepax <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:27 +00:00
Uwe Kleine-König
521fcf401f
mfd: wm8400-core: Convert to i2c's .probe_new()
...
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: Charles Keepax <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:27 +00:00
Uwe Kleine-König
8b20feff09
mfd: wm8350-i2c: Convert to i2c's .probe_new()
...
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: Charles Keepax <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:26 +00:00
Uwe Kleine-König
5fb66be1bf
mfd: wm831x-i2c: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Acked-by: Charles Keepax <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:26 +00:00
Uwe Kleine-König
490e11b7c3
mfd: wl1273-core: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:26 +00:00
Uwe Kleine-König
d85213be33
mfd: twl6040: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:26 +00:00
Uwe Kleine-König
c291d0e347
mfd: twl-core: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:26 +00:00
Uwe Kleine-König
328fc6f86f
mfd: tps65912-i2c: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:26 +00:00
Uwe Kleine-König
74e52d31cf
mfd: tps65910: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:26 +00:00
Uwe Kleine-König
ba801bd52f
mfd: tps6586x: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:26 +00:00
Uwe Kleine-König
3d984091e1
mfd: tps65218: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:26 +00:00
Uwe Kleine-König
b63250984c
mfd: tps65090: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:25 +00:00
Uwe Kleine-König
1f662faa5e
mfd: tps65086: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:25 +00:00
Uwe Kleine-König
0e1a8964f2
mfd: tps6507x: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:25 +00:00
Uwe Kleine-König
71b954d8ac
mfd: tps65010: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:25 +00:00
Uwe Kleine-König
bb5b1c649a
mfd: tps6105x: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:25 +00:00
Uwe Kleine-König
e6a6b1d6bb
mfd: ti-lmu: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:25 +00:00
Uwe Kleine-König
d28fa288ea
mfd: tc3589x: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:25 +00:00
Uwe Kleine-König
40ee15f763
mfd: stw481x: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:25 +00:00
Uwe Kleine-König
39cabdc8fb
mfd: stpmic1: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:25 +00:00
Uwe Kleine-König
50b1d5bab4
mfd: stmpe-i2c: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:24 +00:00
Uwe Kleine-König
05b62f4ca6
mfd: stmfx: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:24 +00:00
Uwe Kleine-König
81943ca2a6
mfd: sky81452: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:24 +00:00
Uwe Kleine-König
ca08a4f30b
mfd: si476x-i2c: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:24 +00:00
Uwe Kleine-König
a403e58970
mfd: sec-core: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:24 +00:00
Uwe Kleine-König
e46b578cab
mfd: rt5033: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:24 +00:00
Uwe Kleine-König
601e6d48ee
mfd: rsmu_i2c: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:24 +00:00
Uwe Kleine-König
6816c54bdd
mfd: rohm-bd718x7: Convert to i2c's .probe_new()
...
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: Matti Vaittinen <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:24 +00:00
Uwe Kleine-König
8416360935
mfd: rk808: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:24 +00:00
Uwe Kleine-König
faa424fc01
mfd: retu-mfd: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:23 +00:00
Uwe Kleine-König
913c4a3e19
mfd: rc5t583: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:23 +00:00
Uwe Kleine-König
659ea73211
mfd: pcf50633-core: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:23 +00:00
Uwe Kleine-König
a5d6cbcfc7
mfd: palmas: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:23 +00:00
Uwe Kleine-König
a5a689fa14
mfd: menf21bmc: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:23 +00:00
Uwe Kleine-König
19301f114b
mfd: menelaus: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:23 +00:00
Uwe Kleine-König
1060552913
mfd: mc13xxx-i2c: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:23 +00:00
Uwe Kleine-König
833eaaf700
mfd: max8998: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:23 +00:00
Uwe Kleine-König
c9f105ec97
mfd: max8997: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:23 +00:00
Uwe Kleine-König
18d9f1217e
mfd: max8925-i2c: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:23 +00:00
Uwe Kleine-König
bab90bb262
mfd: max8907: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:22 +00:00
Uwe Kleine-König
13c6de605f
mfd: max77843: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:22 +00:00
Uwe Kleine-König
317018e57b
mfd: max77693: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:22 +00:00
Uwe Kleine-König
773fb98fec
mfd: max77620: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:22 +00:00
Uwe Kleine-König
8df214715d
mfd: max14577: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:22 +00:00
Uwe Kleine-König
806b9167d4
mfd: madera-i2c: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Acked-by: Charles Keepax <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:22 +00:00
Uwe Kleine-König
2034ef7458
mfd: lp8788: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:22 +00:00
Uwe Kleine-König
7ec69cc2aa
mfd: lp87565: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:22 +00:00
Uwe Kleine-König
4acb5992aa
mfd: lp873x: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:22 +00:00
Uwe Kleine-König
f7b497cb3e
mfd: lp3943: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:21 +00:00
Uwe Kleine-König
daf811fc48
mfd: lm3533-core: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:21 +00:00
Uwe Kleine-König
c88e02da29
mfd: khadas-mcu: Convert to i2c's .probe_new()
...
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: Neil Armstrong <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:21 +00:00
Uwe Kleine-König
3dc6eb9fa1
mfd: da9150-core: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:21 +00:00
Uwe Kleine-König
b309636b66
mfd: da9063-i2c: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:21 +00:00
Uwe Kleine-König
7df5c3d803
mfd: da9062-core: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:21 +00:00
Uwe Kleine-König
d429772913
mfd: da9055-i2c: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:21 +00:00
Uwe Kleine-König
1ebf79726a
mfd: da9052-i2c: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:21 +00:00
Uwe Kleine-König
6887bb934c
mfd: da903x: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:21 +00:00
Uwe Kleine-König
4c023a6ec3
mfd: bd9571mwv: Convert to i2c's .probe_new()
...
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] >
Reviewed-by: Geert Uytterhoeven <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:20 +00:00
Uwe Kleine-König
ace24876ab
mfd: bcm590xx: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:20 +00:00
Uwe Kleine-König
2f2455db6f
mfd: axp20x-i2c: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:20 +00:00
Uwe Kleine-König
10206ff206
mfd: atc260x-i2c: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:20 +00:00
Uwe Kleine-König
9b6e839353
mfd: as3722: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:20 +00:00
Uwe Kleine-König
4a36fb2672
mfd: as3711: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:20 +00:00
Uwe Kleine-König
6cb7ac1c04
mfd: arizona-i2c: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Acked-by: Charles Keepax <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:20 +00:00
Uwe Kleine-König
48c2c36686
mfd: adp5520: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <[email protected] >
Acked-by: Michael Hennerich <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:20 +00:00
Uwe Kleine-König
75a4504e49
mfd: act8945a: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:20 +00:00
Uwe Kleine-König
fb53f66682
mfd: aat2870-core: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:20 +00:00
Uwe Kleine-König
61d1be25a2
mfd: 88pm805: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:19 +00:00
Uwe Kleine-König
b9420da884
mfd: 88pm800: Convert to i2c's .probe_new()
...
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] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-07 13:27:19 +00:00
Uwe Kleine-König
93266da240
dt-bindings: display: Convert fsl,imx-fb.txt to dt-schema
...
Compared to the txt description this adds clocks and clock-names to
match reality.
Note that fsl,imx-lcdc was picked as the new name as this is the actual
hardware's name. There will be a new binding implementing the saner drm
concept that is supposed to supersede this legacy fb binding
Signed-off-by: Uwe Kleine-König <[email protected] >
Reviewed-by: Krzysztof Kozlowski <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Herring <[email protected] >
2022-12-06 14:50:36 -06:00
Uwe Kleine-König
11b9328154
of: unittest: Convert to i2c's .probe_new()
...
In struct i2c_driver, field new_probe replaces the soon to be deprecated
field probe. Update unittest for this change. 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] >
Reviewed-by: Frank Rowand <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
[robh: Add Frank's commit msg addition]
Signed-off-by: Rob Herring <[email protected] >
2022-12-06 14:50:35 -06:00
Uwe Kleine-König
8fa22f4b88
pwm: pca9685: Convert to i2c's .probe_new()
...
The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Thierry Reding <[email protected] >
2022-12-06 12:46:31 +01:00
Uwe Kleine-König
c73a310762
pwm: Handle .get_state() failures
...
This suppresses diagnosis for PWM_DEBUG routines and makes sure that
pwm->state isn't modified in pwm_device_request() if .get_state() fails.
Acked-by: Conor Dooley <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Thierry Reding <[email protected] >
2022-12-06 12:46:29 +01:00
Uwe Kleine-König
500f879843
pwm: sprd: Propagate errors in .get_state() to the caller
...
.get_state() can return an error indication. Make use of it to propagate
failing hardware accesses.
Reviewed-by: Baolin Wang <[email protected] >
Acked-by: Conor Dooley <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Thierry Reding <[email protected] >
2022-12-06 12:46:28 +01:00
Uwe Kleine-König
790a8bae62
pwm: rockchip: Propagate errors in .get_state() to the caller
...
.get_state() can return an error indication. Make use of it to propagate
failing hardware accesses.
Reviewed-by: Heiko Stuebner <[email protected] >
Acked-by: Conor Dooley <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Thierry Reding <[email protected] >
2022-12-06 12:46:28 +01:00
Uwe Kleine-König
2f47786ce4
pwm: mtk-disp: Propagate errors in .get_state() to the caller
...
.get_state() can return an error indication. Make use of it to propagate
failing hardware accesses.
Reviewed-by: AngeloGioacchino Del Regno <[email protected] >
Acked-by: Conor Dooley <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Thierry Reding <[email protected] >
2022-12-06 12:46:27 +01:00
Uwe Kleine-König
51b9f2fb38
pwm: imx27: Propagate errors in .get_state() to the caller
...
.get_state() can return an error indication. Make use of it to propagate
failing hardware accesses.
Acked-by: Conor Dooley <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Thierry Reding <[email protected] >
2022-12-06 12:46:26 +01:00
Uwe Kleine-König
ee02c1cb87
pwm: cros-ec: Propagate errors in .get_state() to the caller
...
.get_state() can return an error indication. Make use of it to propagate
failing hardware accesses.
Reviewed-by: Tzung-Bi Shih <[email protected] >
Acked-by: Conor Dooley <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Thierry Reding <[email protected] >
2022-12-06 12:46:25 +01:00
Uwe Kleine-König
9c9d5e9957
pwm: crc: Propagate errors in .get_state() to the caller
...
.get_state() can return an error indication. Make use of it to propagate
failing hardware accesses.
Acked-by: Conor Dooley <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Thierry Reding <[email protected] >
2022-12-06 12:46:25 +01:00
Uwe Kleine-König
fea768cf68
leds: qcom-lpg: Propagate errors in .get_state() to the caller
...
.get_state() can return an error indication. Make use of it to propagate
failing hardware accesses.
Acked-by: Pavel Machek <[email protected] >
Acked-by: Conor Dooley <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Thierry Reding <[email protected] >
2022-12-06 12:46:24 +01:00
Uwe Kleine-König
f00de18066
drm/bridge: ti-sn65dsi86: Propagate errors in .get_state() to the caller
...
.get_state() can return an error indication. Make use of it to propagate
failing hardware accesses.
Acked-by: Douglas Anderson <[email protected] >
Reviewed-by: Laurent Pinchart <[email protected] >
Acked-by: Conor Dooley <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Thierry Reding <[email protected] >
2022-12-06 12:46:23 +01:00
Uwe Kleine-König
3dae106f4c
pwm/tracing: Also record trace events for failed API calls
...
Record and report an error code for the events. This allows to report
about failed calls without ambiguity and so gives a more complete
picture.
Acked-by: Conor Dooley <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Thierry Reding <[email protected] >
2022-12-06 12:46:23 +01:00
Uwe Kleine-König
6c452cff79
pwm: Make .get_state() callback return an error code
...
.get_state() might fail in some cases. To make it possible that a driver
signals such a failure change the prototype of .get_state() to return an
error code.
This patch was created using coccinelle and the following semantic patch:
@p1@
identifier getstatefunc;
identifier driver;
@@
struct pwm_ops driver = {
...,
.get_state = getstatefunc
,...
};
@p2@
identifier p1.getstatefunc;
identifier chip, pwm, state;
@@
-void
+int
getstatefunc(struct pwm_chip *chip, struct pwm_device *pwm, struct pwm_state *state)
{
...
- return;
+ return 0;
...
}
plus the actual change of the prototype in include/linux/pwm.h (plus some
manual fixing of indentions and empty lines).
So for now all drivers return success unconditionally. They are adapted
in the following patches to make the changes easier reviewable.
Reviewed-by: Heiko Stuebner <[email protected] >
Reviewed-by: Baolin Wang <[email protected] >
Reviewed-by: Tzung-Bi Shih <[email protected] >
Reviewed-by: Neil Armstrong <[email protected] >
Reviewed-by: Nobuhiro Iwamatsu <[email protected] >
Reviewed-by: Andre Przywara <[email protected] >
Reviewed-by: Dave Stevenson <[email protected] >
Acked-by: Douglas Anderson <[email protected] >
Acked-by: Jernej Skrabec <[email protected] >
Acked-by: Pavel Machek <[email protected] >
Acked-by: Conor Dooley <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Thierry Reding <[email protected] >
2022-12-06 12:46:22 +01:00
Uwe Kleine-König
632ae5d7eb
pwm: stm32: Use regmap_clear_bits and regmap_set_bits where applicable
...
Found using coccinelle and the following semantic patch:
@@
expression map, reg, bits;
@@
- regmap_update_bits(map, reg, bits, bits)
+ regmap_set_bits(map, reg, bits)
@@
expression map, reg, bits;
@@
- regmap_update_bits(map, reg, bits, 0)
+ regmap_clear_bits(map, reg, bits)
Tested-by: Fabrice Gasnier <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Thierry Reding <[email protected] >
2022-12-06 12:46:11 +01:00
Uwe Kleine-König
85cad49f5e
pwm: stm32-lp: Use regmap_clear_bits and regmap_set_bits where applicable
...
Found using coccinelle and the following semantic patch:
@@
expression map, reg, bits;
@@
- regmap_update_bits(map, reg, bits, bits)
+ regmap_set_bits(map, reg, bits)
@@
expression map, reg, bits;
@@
- regmap_update_bits(map, reg, bits, 0)
+ regmap_clear_bits(map, reg, bits)
Tested-by: Fabrice Gasnier <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Thierry Reding <[email protected] >
2022-12-06 12:46:10 +01:00
Uwe Kleine-König
2c85895bf3
pwm: iqs620a: Use regmap_clear_bits and regmap_set_bits where applicable
...
Found using coccinelle and the following semantic patch:
@@
expression map, reg, bits;
@@
- regmap_update_bits(map, reg, bits, bits)
+ regmap_set_bits(map, reg, bits)
@@
expression map, reg, bits;
@@
- regmap_update_bits(map, reg, bits, 0)
+ regmap_clear_bits(map, reg, bits)
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Thierry Reding <[email protected] >
2022-12-06 12:46:09 +01:00