* [PATCH 0/4] rtc: convert subsystem to i2c_new_dummy_device()
@ 2019-07-22 17:26 Wolfram Sang
2019-07-22 17:26 ` [PATCH 4/4] rtc: s5m: convert to i2c_new_dummy_device Wolfram Sang
2019-07-22 20:50 ` [PATCH 0/4] rtc: convert subsystem to i2c_new_dummy_device() Alexandre Belloni
0 siblings, 2 replies; 4+ messages in thread
From: Wolfram Sang @ 2019-07-22 17:26 UTC (permalink / raw)
To: linux-i2c; +Cc: Wolfram Sang, linux-kernel, linux-rtc, linux-samsung-soc
This series is part of a tree-wide movement to replace the I2C API call
'i2c_new_dummy' which returns NULL with its new counterpart returning an
ERRPTR.
The series was generated with coccinelle (audited afterwards, of course) and
build tested by me and by buildbot. No tests on HW have been performed.
The branch is based on v5.3-rc1. A branch (with some more stuff included) can
be found here:
git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/i2c/new_dummy
Some drivers still need to be manually converted. Patches for those will be
sent out individually.
Wolfram Sang (4):
rtc: isl12026: convert to i2c_new_dummy_device
rtc: max77686: convert to i2c_new_dummy_device
rtc: s35390a: convert to i2c_new_dummy_device
rtc: s5m: convert to i2c_new_dummy_device
drivers/rtc/rtc-isl12026.c | 6 +++---
drivers/rtc/rtc-max77686.c | 6 +++---
drivers/rtc/rtc-s35390a.c | 6 +++---
drivers/rtc/rtc-s5m.c | 6 +++---
4 files changed, 12 insertions(+), 12 deletions(-)
--
2.20.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 4/4] rtc: s5m: convert to i2c_new_dummy_device
2019-07-22 17:26 [PATCH 0/4] rtc: convert subsystem to i2c_new_dummy_device() Wolfram Sang
@ 2019-07-22 17:26 ` Wolfram Sang
2019-07-23 15:32 ` Krzysztof Kozlowski
2019-07-22 20:50 ` [PATCH 0/4] rtc: convert subsystem to i2c_new_dummy_device() Alexandre Belloni
1 sibling, 1 reply; 4+ messages in thread
From: Wolfram Sang @ 2019-07-22 17:26 UTC (permalink / raw)
To: linux-i2c
Cc: Wolfram Sang, Sangbeom Kim, Krzysztof Kozlowski,
Bartlomiej Zolnierkiewicz, Alessandro Zummo, Alexandre Belloni,
linux-kernel, linux-samsung-soc, linux-rtc
Move from i2c_new_dummy() to i2c_new_dummy_device(), so we now get an
ERRPTR which we use in error handling.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
Generated with coccinelle. Build tested by me and buildbot. Not tested on HW.
drivers/rtc/rtc-s5m.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/rtc/rtc-s5m.c b/drivers/rtc/rtc-s5m.c
index c7f1bf823ea0..eb9dde4095a9 100644
--- a/drivers/rtc/rtc-s5m.c
+++ b/drivers/rtc/rtc-s5m.c
@@ -760,10 +760,10 @@ static int s5m_rtc_probe(struct platform_device *pdev)
return -ENODEV;
}
- info->i2c = i2c_new_dummy(s5m87xx->i2c->adapter, RTC_I2C_ADDR);
- if (!info->i2c) {
+ info->i2c = i2c_new_dummy_device(s5m87xx->i2c->adapter, RTC_I2C_ADDR);
+ if (IS_ERR(info->i2c)) {
dev_err(&pdev->dev, "Failed to allocate I2C for RTC\n");
- return -ENODEV;
+ return PTR_ERR(info->i2c);
}
info->regmap = devm_regmap_init_i2c(info->i2c, regmap_cfg);
--
2.20.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/4] rtc: convert subsystem to i2c_new_dummy_device()
2019-07-22 17:26 [PATCH 0/4] rtc: convert subsystem to i2c_new_dummy_device() Wolfram Sang
2019-07-22 17:26 ` [PATCH 4/4] rtc: s5m: convert to i2c_new_dummy_device Wolfram Sang
@ 2019-07-22 20:50 ` Alexandre Belloni
1 sibling, 0 replies; 4+ messages in thread
From: Alexandre Belloni @ 2019-07-22 20:50 UTC (permalink / raw)
To: Wolfram Sang; +Cc: linux-i2c, linux-kernel, linux-rtc, linux-samsung-soc
On 22/07/2019 19:26:14+0200, Wolfram Sang wrote:
> This series is part of a tree-wide movement to replace the I2C API call
> 'i2c_new_dummy' which returns NULL with its new counterpart returning an
> ERRPTR.
>
> The series was generated with coccinelle (audited afterwards, of course) and
> build tested by me and by buildbot. No tests on HW have been performed.
>
> The branch is based on v5.3-rc1. A branch (with some more stuff included) can
> be found here:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/i2c/new_dummy
>
> Some drivers still need to be manually converted. Patches for those will be
> sent out individually.
>
>
> Wolfram Sang (4):
> rtc: isl12026: convert to i2c_new_dummy_device
> rtc: max77686: convert to i2c_new_dummy_device
> rtc: s35390a: convert to i2c_new_dummy_device
> rtc: s5m: convert to i2c_new_dummy_device
>
> drivers/rtc/rtc-isl12026.c | 6 +++---
> drivers/rtc/rtc-max77686.c | 6 +++---
> drivers/rtc/rtc-s35390a.c | 6 +++---
> drivers/rtc/rtc-s5m.c | 6 +++---
> 4 files changed, 12 insertions(+), 12 deletions(-)
>
All applied, thanks!
--
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 4/4] rtc: s5m: convert to i2c_new_dummy_device
2019-07-22 17:26 ` [PATCH 4/4] rtc: s5m: convert to i2c_new_dummy_device Wolfram Sang
@ 2019-07-23 15:32 ` Krzysztof Kozlowski
0 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2019-07-23 15:32 UTC (permalink / raw)
To: Wolfram Sang
Cc: linux-i2c, Sangbeom Kim, Bartlomiej Zolnierkiewicz,
Alessandro Zummo, Alexandre Belloni, linux-kernel,
linux-samsung-soc@vger.kernel.org, linux-rtc
On Mon, 22 Jul 2019 at 19:26, Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
>
> Move from i2c_new_dummy() to i2c_new_dummy_device(), so we now get an
> ERRPTR which we use in error handling.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> ---
>
> Generated with coccinelle. Build tested by me and buildbot. Not tested on HW.
>
> drivers/rtc/rtc-s5m.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Tested-by: Krzysztof Kozlowski <krzk@kernel.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-07-23 15:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-22 17:26 [PATCH 0/4] rtc: convert subsystem to i2c_new_dummy_device() Wolfram Sang
2019-07-22 17:26 ` [PATCH 4/4] rtc: s5m: convert to i2c_new_dummy_device Wolfram Sang
2019-07-23 15:32 ` Krzysztof Kozlowski
2019-07-22 20:50 ` [PATCH 0/4] rtc: convert subsystem to i2c_new_dummy_device() Alexandre Belloni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox