public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
From: Wolfram Sang <wsa@kernel.org>
To: Heiner Kallweit <hkallweit1@gmail.com>
Cc: Jens Frederich <jfrederich@gmail.com>,
	Jon Nettleton <jon.nettleton@gmail.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-staging@lists.linux.dev,
	"linux-i2c@vger.kernel.org" <linux-i2c@vger.kernel.org>
Subject: Re: [PATCH] staging: olpc_dcon: Remove I2C_CLASS_DDC support
Date: Sat, 28 Oct 2023 14:30:48 +0200	[thread overview]
Message-ID: <ZTz++FupTVs/vOxX@shikoro> (raw)
In-Reply-To: <da3070d9-e016-4167-843f-a08d5b2dc1fe@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1684 bytes --]

On Thu, Oct 26, 2023 at 10:49:21PM +0200, Heiner Kallweit wrote:
> olpc_dcon is the only remaining i2c client device driver declaring
> I2C_CLASS_DDC support after the legacy eeprom driver has been removed.
> 
> olpc_dcon is only used on olpc devices, connected to an i2c adapter
> driven by scx200_acb. This adapter driver declares support for
> I2C_CLASS_HWMON and I2C_CLASS_SPD. Therefore we can safely drop
> I2C_CLASS_DDC support in olpc_dcon.
> 
> That's the last step before I2C_CLASS_DDC can be removed in general.
> 
> This patch is solely based on documentation, and I don't have an olpc
> device for testing. Therefore some testing would be appreciated before
> patch is applied.

Yes, testing would be good, for sure. Still, I think we can apply it
even without. Because we are not dealing with HW features here, but only
with the Linux internal handling of i2c adapter classes. So:

Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

> 
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> ---
>  drivers/staging/olpc_dcon/olpc_dcon.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/olpc_dcon/olpc_dcon.c b/drivers/staging/olpc_dcon/olpc_dcon.c
> index d5271eac1..08ec3aae9 100644
> --- a/drivers/staging/olpc_dcon/olpc_dcon.c
> +++ b/drivers/staging/olpc_dcon/olpc_dcon.c
> @@ -777,7 +777,7 @@ static struct i2c_driver dcon_driver = {
>  		.name	= "olpc_dcon",
>  		.pm = &dcon_pm_ops,
>  	},
> -	.class = I2C_CLASS_DDC | I2C_CLASS_HWMON,
> +	.class = I2C_CLASS_HWMON,
>  	.id_table = dcon_idtable,
>  	.probe = dcon_probe,
>  	.remove = dcon_remove,
> -- 
> 2.42.0
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2023-10-28 12:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-26 20:49 [PATCH] staging: olpc_dcon: Remove I2C_CLASS_DDC support Heiner Kallweit
2023-10-28 12:30 ` Wolfram Sang [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=ZTz++FupTVs/vOxX@shikoro \
    --to=wsa@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=hkallweit1@gmail.com \
    --cc=jfrederich@gmail.com \
    --cc=jon.nettleton@gmail.com \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox