[PATCH v2 0/6] Remove use of i2c_match_id in RTC

Andrew Davis posted 6 patches 1 month ago
drivers/rtc/rtc-abx80x.c  |  3 +--
drivers/rtc/rtc-m41t80.c  |  8 +-------
drivers/rtc/rtc-pcf2127.c | 23 +++++++----------------
drivers/rtc/rtc-rs5c372.c |  7 +------
drivers/rtc/rtc-rv8803.c  |  8 +-------
drivers/rtc/rtc-rx8025.c  |  4 +---
6 files changed, 12 insertions(+), 41 deletions(-)
[PATCH v2 0/6] Remove use of i2c_match_id in RTC
Posted by Andrew Davis 1 month ago
Hello all,

RTC subsystem is one of the last still using i2c_match_id().
This is a v2 but nothing is changed from last time. If I'm
not sending this to the right folks let me know.

Thanks,
Andrew

Andrew Davis (6):
  rtc: abx80x: Remove use of i2c_match_id()
  rtc: m41t80: Remove use of i2c_match_id()
  rtc: pcf2127: Remove use of i2c_match_id()
  rtc: rs5c372: Remove use of i2c_match_id()
  rtc: rv8803: Remove use of i2c_match_id()
  rtc: rx8025: Remove use of i2c_match_id()

 drivers/rtc/rtc-abx80x.c  |  3 +--
 drivers/rtc/rtc-m41t80.c  |  8 +-------
 drivers/rtc/rtc-pcf2127.c | 23 +++++++----------------
 drivers/rtc/rtc-rs5c372.c |  7 +------
 drivers/rtc/rtc-rv8803.c  |  8 +-------
 drivers/rtc/rtc-rx8025.c  |  4 +---
 6 files changed, 12 insertions(+), 41 deletions(-)

-- 
2.39.2
Re: [PATCH v2 0/6] Remove use of i2c_match_id in RTC
Posted by Alexandre Belloni 1 month ago
On 05/03/2026 13:35:39-0600, Andrew Davis wrote:
> Hello all,
> 
> RTC subsystem is one of the last still using i2c_match_id().
> This is a v2 but nothing is changed from last time. If I'm
> not sending this to the right folks let me know.

Do you mean that you intend to remove i2c_match_id from the kernel?

> 
> Thanks,
> Andrew
> 
> Andrew Davis (6):
>   rtc: abx80x: Remove use of i2c_match_id()
>   rtc: m41t80: Remove use of i2c_match_id()
>   rtc: pcf2127: Remove use of i2c_match_id()
>   rtc: rs5c372: Remove use of i2c_match_id()
>   rtc: rv8803: Remove use of i2c_match_id()
>   rtc: rx8025: Remove use of i2c_match_id()
> 
>  drivers/rtc/rtc-abx80x.c  |  3 +--
>  drivers/rtc/rtc-m41t80.c  |  8 +-------
>  drivers/rtc/rtc-pcf2127.c | 23 +++++++----------------
>  drivers/rtc/rtc-rs5c372.c |  7 +------
>  drivers/rtc/rtc-rv8803.c  |  8 +-------
>  drivers/rtc/rtc-rx8025.c  |  4 +---
>  6 files changed, 12 insertions(+), 41 deletions(-)
> 
> -- 
> 2.39.2
> 

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Re: [PATCH v2 0/6] Remove use of i2c_match_id in RTC
Posted by Andrew Davis 1 month ago
On 3/5/26 5:07 PM, Alexandre Belloni wrote:
> On 05/03/2026 13:35:39-0600, Andrew Davis wrote:
>> Hello all,
>>
>> RTC subsystem is one of the last still using i2c_match_id().
>> This is a v2 but nothing is changed from last time. If I'm
>> not sending this to the right folks let me know.
> 
> Do you mean that you intend to remove i2c_match_id from the kernel?
> 

Yes, once I remove all users in the various subsystems (like RTC),
I'll remove it from the I2C headers.

It should be replaced with functions like i2c_get_match_data()
for reasons given in the commit messages.

Andrew

>>
>> Thanks,
>> Andrew
>>
>> Andrew Davis (6):
>>    rtc: abx80x: Remove use of i2c_match_id()
>>    rtc: m41t80: Remove use of i2c_match_id()
>>    rtc: pcf2127: Remove use of i2c_match_id()
>>    rtc: rs5c372: Remove use of i2c_match_id()
>>    rtc: rv8803: Remove use of i2c_match_id()
>>    rtc: rx8025: Remove use of i2c_match_id()
>>
>>   drivers/rtc/rtc-abx80x.c  |  3 +--
>>   drivers/rtc/rtc-m41t80.c  |  8 +-------
>>   drivers/rtc/rtc-pcf2127.c | 23 +++++++----------------
>>   drivers/rtc/rtc-rs5c372.c |  7 +------
>>   drivers/rtc/rtc-rv8803.c  |  8 +-------
>>   drivers/rtc/rtc-rx8025.c  |  4 +---
>>   6 files changed, 12 insertions(+), 41 deletions(-)
>>
>> -- 
>> 2.39.2
>>
>
Re: [PATCH v2 0/6] Remove use of i2c_match_id in RTC
Posted by Alexandre Belloni 1 month ago
On 06/03/2026 09:01:00-0600, Andrew Davis wrote:
> On 3/5/26 5:07 PM, Alexandre Belloni wrote:
> > On 05/03/2026 13:35:39-0600, Andrew Davis wrote:
> > > Hello all,
> > > 
> > > RTC subsystem is one of the last still using i2c_match_id().
> > > This is a v2 but nothing is changed from last time. If I'm
> > > not sending this to the right folks let me know.
> > 
> > Do you mean that you intend to remove i2c_match_id from the kernel?
> > 
> 
> Yes, once I remove all users in the various subsystems (like RTC),
> I'll remove it from the I2C headers.
> 
> It should be replaced with functions like i2c_get_match_data()
> for reasons given in the commit messages.

Ok, this should have been made clear in the original cover letter, the
series would have looked a bit less like unnecessary churn.

> 
> Andrew
> 
> > > 
> > > Thanks,
> > > Andrew
> > > 
> > > Andrew Davis (6):
> > >    rtc: abx80x: Remove use of i2c_match_id()
> > >    rtc: m41t80: Remove use of i2c_match_id()
> > >    rtc: pcf2127: Remove use of i2c_match_id()
> > >    rtc: rs5c372: Remove use of i2c_match_id()
> > >    rtc: rv8803: Remove use of i2c_match_id()
> > >    rtc: rx8025: Remove use of i2c_match_id()
> > > 
> > >   drivers/rtc/rtc-abx80x.c  |  3 +--
> > >   drivers/rtc/rtc-m41t80.c  |  8 +-------
> > >   drivers/rtc/rtc-pcf2127.c | 23 +++++++----------------
> > >   drivers/rtc/rtc-rs5c372.c |  7 +------
> > >   drivers/rtc/rtc-rv8803.c  |  8 +-------
> > >   drivers/rtc/rtc-rx8025.c  |  4 +---
> > >   6 files changed, 12 insertions(+), 41 deletions(-)
> > > 
> > > -- 
> > > 2.39.2
> > > 
> > 
> 

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Re: [PATCH v2 0/6] Remove use of i2c_match_id in RTC
Posted by Alexandre Belloni 4 weeks ago
On Thu, 05 Mar 2026 13:35:39 -0600, Andrew Davis wrote:
> RTC subsystem is one of the last still using i2c_match_id().
> This is a v2 but nothing is changed from last time. If I'm
> not sending this to the right folks let me know.
> 
> Thanks,
> Andrew
> 
> [...]

Applied, thanks!

[1/6] rtc: abx80x: Remove use of i2c_match_id()
      https://git.kernel.org/abelloni/c/652dc1328110
[2/6] rtc: m41t80: Remove use of i2c_match_id()
      https://git.kernel.org/abelloni/c/aade5f4bf9e2
[3/6] rtc: pcf2127: Remove use of i2c_match_id()
      https://git.kernel.org/abelloni/c/c85ac0b4d7c5
[4/6] rtc: rs5c372: Remove use of i2c_match_id()
      https://git.kernel.org/abelloni/c/022bfe69575d
[5/6] rtc: rv8803: Remove use of i2c_match_id()
      https://git.kernel.org/abelloni/c/c79e6131b17e
[6/6] rtc: rx8025: Remove use of i2c_match_id()
      https://git.kernel.org/abelloni/c/fbae853a00b4

Best regards,

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com