Skip to contentSkip to conversation

i2c: i2c-smbus: fix i2c_handle_smbus_host_notify documentation

PATCH Applied Jean Delvare 3 participants 3 messages Jul 16, 2016 – Jul 18, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c: i2c-smbus: fix i2c_handle_smbus_host_notify documentation

The parameter description is from a previous implementation, update it to describe the actual implementation.

Cc Benjamin Tissoires <[email protected]>
Cc Wolfram Sang <[email protected]>
---
 drivers/i2c/i2c-smbus.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/i2c/i2c-smbus.c +2 -2
@@ -302,8 +302,8 @@ EXPORT_SYMBOL_GPL(i2c_setup_smbus_host_n
  * i2c_handle_smbus_host_notify - Forward a Host Notify event to the correct
  * I2C client.
  * @host_notify: the struct host_notify attached to the relevant adapter
- * @data: the Host Notify data which contains the payload and address of the
- * client
+ * @addr: the I2C address of the notifying device
+ * @data: the payload of the notification
  * Context: can't sleep
  *
  * Helper function to be called from an I2C bus driver's interrupt
Signature · 2 lines
Jean Delvare
SUSE L3 Support
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Jean Delvare

The parameter description is from a previous implementation, update it to describe the actual implementation.

Cc Benjamin Tissoires <[email protected]>
Cc Wolfram Sang <[email protected]>

---

Good catch, thanks for fixing it.

Cheers,
Benjamin

Quoted 21 lines
 drivers/i2c/i2c-smbus.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/i2c/i2c-smbus.c +2 -2
@@ -302,8 +302,8 @@ EXPORT_SYMBOL_GPL(i2c_setup_smbus_host_n
  * i2c_handle_smbus_host_notify - Forward a Host Notify event to the correct
  * I2C client.
  * @host_notify: the struct host_notify attached to the relevant adapter
- * @data: the Host Notify data which contains the payload and address of the
- * client
+ * @addr: the I2C address of the notifying device
+ * @data: the payload of the notification
  * Context: can't sleep
  *
  * Helper function to be called from an I2C bus driver's interrupt
Signature · 3 lines
-- 
Jean Delvare
SUSE L3 Support