diff options
author | Uwe Kleine-König <u.kleine-koenig@baylibre.com> | 2024-07-08 17:09:12 +0200 |
---|---|---|
committer | Corey Minyard <corey@minyard.net> | 2024-07-08 15:05:18 -0500 |
commit | 19a01155ddfe525e3a4e7cef734f18cce640b1ef (patch) | |
tree | b03d1c3d0afb98280f314ac3d64880e873903377 /drivers/char/ipmi/ipmi_ipmb.c | |
parent | 0627cef36145c9ff9845bdfd7ddf485bbac1f981 (diff) | |
download | lwn-19a01155ddfe525e3a4e7cef734f18cce640b1ef.tar.gz lwn-19a01155ddfe525e3a4e7cef734f18cce640b1ef.zip |
ipmi: Drop explicit initialization of struct i2c_device_id::driver_data to 0
These drivers don't use the driver_data member of struct i2c_device_id,
so don't explicitly initialize this member.
This prepares putting driver_data in an anonymous union which requires
either no initialization or named designators. But it's also a nice
cleanup on its own.
While at it, also remove commas after the sentinel entries.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Message-Id: <20240708150914.18190-2-u.kleine-koenig@baylibre.com>
Signed-off-by: Corey Minyard <corey@minyard.net>
Diffstat (limited to 'drivers/char/ipmi/ipmi_ipmb.c')
-rw-r--r-- | drivers/char/ipmi/ipmi_ipmb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/ipmi/ipmi_ipmb.c b/drivers/char/ipmi/ipmi_ipmb.c index 4e335832fc26..6a4f279c7c1f 100644 --- a/drivers/char/ipmi/ipmi_ipmb.c +++ b/drivers/char/ipmi/ipmi_ipmb.c @@ -561,8 +561,8 @@ MODULE_DEVICE_TABLE(of, of_ipmi_ipmb_match); #endif static const struct i2c_device_id ipmi_ipmb_id[] = { - { DEVICE_NAME, 0 }, - {}, + { DEVICE_NAME }, + {} }; MODULE_DEVICE_TABLE(i2c, ipmi_ipmb_id); |