All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thorsten Blum <thorsten.blum@linux.dev>
To: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Cc: Wolfram Sang <wsa+renesas@sang-engineering.com>,
	linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH RESEND] i2c: change return type to bool for i2c_check_functionality
Date: Sun, 7 Jun 2026 00:12:19 +0200	[thread overview]
Message-ID: <aiSbQ20F0GsQJqir@linux.dev> (raw)
In-Reply-To: <0b13ebc9-8781-46ba-9a55-cb4d54afcf1a@wanadoo.fr>

On Sat, Jun 06, 2026 at 11:58:03PM +0200, Christophe JAILLET wrote:
> Le 06/06/2026 à 23:29, Thorsten Blum a écrit :
> > Hi Wolfram,
> > 
> > On Mon, May 04, 2026 at 11:15:19AM +0200, Wolfram Sang wrote:
> > > On Tue, Apr 21, 2026 at 06:16:09PM +0200, Thorsten Blum wrote:
> > > > i2c_check_functionality() returns a bool - change the return type from
> > > > int to bool and update the comment accordingly.
> > > > 
> > > > Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
> > > 
> > > Basically OK but you need to fix the in-tree user first using the 'int'
> > > behaviour [1]. I'd think you can send it with this patch as one series
> > > and have it go in via the I2C tree, but Lee has to agree then.
> > > 
> > > [1] $ git grep 'i2c_check_functionality.*='
> 
> I think it should be git grep '=.*i2c_check_functionality'.
> 
> > 
> > In linux-next [1] shows no more results and I believe all have been
> > converted.
> 
> Looks like:
>    drivers/gpu/drm/bridge/sii902x.c:       ret =
> i2c_check_functionality(client->adapter,
>    drivers/media/i2c/isl7998x.c:   ret = i2c_check_functionality(adapter,
> I2C_FUNC_SMBUS_WORD_DATA);
> 
> need care.

Those have also been taken care of with some Reviewed-by: tags, but they
aren't in linux-next yet:

https://lore.kernel.org/lkml/20260517172136.3321-2-thorsten.blum@linux.dev/
https://lore.kernel.org/lkml/20260517172034.3033-2-thorsten.blum@linux.dev/

And the conversions are not strictly necessary since 0 == false.

Thanks,
Thorsten

      reply	other threads:[~2026-06-06 22:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-21 16:16 [PATCH RESEND] i2c: change return type to bool for i2c_check_functionality Thorsten Blum
2026-04-22 12:29 ` Mukesh Savaliya
2026-05-04  9:15 ` Wolfram Sang
2026-06-06 21:29   ` Thorsten Blum
2026-06-06 21:58     ` Christophe JAILLET
2026-06-06 22:12       ` Thorsten Blum [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aiSbQ20F0GsQJqir@linux.dev \
    --to=thorsten.blum@linux.dev \
    --cc=christophe.jaillet@wanadoo.fr \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wsa+renesas@sang-engineering.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.