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

From: Alexandre Belloni

Date: Fri Mar 06 2026 - 19:09:56 EST


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