mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pengpeng Hou <hppiscas@163.com>
To: Lee Jones <lee@kernel.org>
Cc: Pengpeng Hou <hppiscas@163.com>,
	mfd@lists.linux.dev, linux-kernel@vger.kernel.org,
	Aaron Kling <webgeek1234@gmail.com>
Subject: Re: [PATCH v2] mfd: max77620: publish module aliases with variant match data
Date: Thu,  3 Dec 2026 11:26:53 +0800	[thread overview]
Message-ID: <20261203032653.54714-1-hppiscas@163.com> (raw)
In-Reply-To: <179198324452.839288.10919510385745503720@kernel.org>

Hi Lee,

You're right: the array only provided addresses for enum values. It
isn't needed to describe the variants. MAX77620 is currently zero,
so treating a NULL match-data pointer as an unknown chip would also
reject MAX77620 if the IDs were cast directly. For a revision I'd
reserve zero for no match after checking users of the enum, and use
the same nonzero IDs for the OF and I2C entries.

I'd use .name and .driver_data in the I2C table and capitalize
"Publish" in the subject. On the registration point, MFD_MAX77620
is tristate, but builtin_i2c_driver() doesn't supply an unregister
exit path. Publishing an alias is about loading the driver; it
doesn't make removal safe. I wouldn't switch registration macros
as part of this change.

Thanks,
Pengpeng


  reply	other threads:[~2026-12-03  3:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-14  3:21 Pengpeng Hou
2026-10-14 14:00 ` Lee Jones
2026-12-03  3:26   ` Pengpeng Hou [this message]
2026-12-03  8:21     ` Lee Jones

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=20261203032653.54714-1-hppiscas@163.com \
    --to=hppiscas@163.com \
    --cc=lee@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mfd@lists.linux.dev \
    --cc=webgeek1234@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®