* [PATCH] Documentation: i2c: Constify struct i2c_device_id
@ 2024-11-12 21:01 Christophe JAILLET
2024-11-14 9:36 ` Wolfram Sang
0 siblings, 1 reply; 2+ messages in thread
From: Christophe JAILLET @ 2024-11-12 21:01 UTC (permalink / raw)
To: Wolfram Sang; +Cc: linux-kernel, kernel-janitors, Christophe JAILLET, linux-i2c
Constify the i2c_device_id structure in the doc to give a cleaner starting
point.
Also remove an empty line which is usually not added.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
Documentation/i2c/writing-clients.rst | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/Documentation/i2c/writing-clients.rst b/Documentation/i2c/writing-clients.rst
index 0b8439ea954c..121e618e72ec 100644
--- a/Documentation/i2c/writing-clients.rst
+++ b/Documentation/i2c/writing-clients.rst
@@ -31,12 +31,11 @@ driver model device node, and its I2C address.
::
- static struct i2c_device_id foo_idtable[] = {
+ static const struct i2c_device_id foo_idtable[] = {
{ "foo", my_id_for_foo },
{ "bar", my_id_for_bar },
{ }
};
-
MODULE_DEVICE_TABLE(i2c, foo_idtable);
static struct i2c_driver foo_driver = {
--
2.47.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Documentation: i2c: Constify struct i2c_device_id
2024-11-12 21:01 [PATCH] Documentation: i2c: Constify struct i2c_device_id Christophe JAILLET
@ 2024-11-14 9:36 ` Wolfram Sang
0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2024-11-14 9:36 UTC (permalink / raw)
To: Christophe JAILLET; +Cc: linux-kernel, kernel-janitors, linux-i2c
[-- Attachment #1: Type: text/plain, Size: 325 bytes --]
On Tue, Nov 12, 2024 at 10:01:00PM +0100, Christophe JAILLET wrote:
> Constify the i2c_device_id structure in the doc to give a cleaner starting
> point.
>
> Also remove an empty line which is usually not added.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Applied to for-next, thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-11-14 9:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-12 21:01 [PATCH] Documentation: i2c: Constify struct i2c_device_id Christophe JAILLET
2024-11-14 9:36 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox