diff options
author | Yixun Lan <yixun.lan@amlogic.com> | 2018-01-24 02:05:14 -0500 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2018-01-26 12:33:44 -0500 |
commit | 7e4c9d9e508f63b6371e4fcffc882e712c8307ad (patch) | |
tree | 97a598f01480d20d8b0e61bda2926466e44d76a0 | |
parent | 931b18e92cd035353644fcefa3626a65c74fa799 (diff) |
i2c: meson: update doc description to fix build warnings
Add description for 'data' parameter and drop unused 'irq' memeber.
Here is the warnings:
drivers/i2c/busses/i2c-meson.c:103: warning: No description found for
parameter 'data'
drivers/i2c/busses/i2c-meson.c:103: warning: Excess struct member 'irq'
description in 'meson_i2c'
Reported-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-rw-r--r-- | drivers/i2c/busses/i2c-meson.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-meson.c b/drivers/i2c/busses/i2c-meson.c index 37c4aa76f37a..90f5d0407d73 100644 --- a/drivers/i2c/busses/i2c-meson.c +++ b/drivers/i2c/busses/i2c-meson.c | |||
@@ -69,7 +69,6 @@ struct meson_i2c_data { | |||
69 | * @dev: Pointer to device structure | 69 | * @dev: Pointer to device structure |
70 | * @regs: Base address of the device memory mapped registers | 70 | * @regs: Base address of the device memory mapped registers |
71 | * @clk: Pointer to clock structure | 71 | * @clk: Pointer to clock structure |
72 | * @irq: IRQ number | ||
73 | * @msg: Pointer to the current I2C message | 72 | * @msg: Pointer to the current I2C message |
74 | * @state: Current state in the driver state machine | 73 | * @state: Current state in the driver state machine |
75 | * @last: Flag set for the last message in the transfer | 74 | * @last: Flag set for the last message in the transfer |
@@ -80,6 +79,7 @@ struct meson_i2c_data { | |||
80 | * @done: Completion used to wait for transfer termination | 79 | * @done: Completion used to wait for transfer termination |
81 | * @tokens: Sequence of tokens to be written to the device | 80 | * @tokens: Sequence of tokens to be written to the device |
82 | * @num_tokens: Number of tokens | 81 | * @num_tokens: Number of tokens |
82 | * @data: Pointer to the controlller's platform data | ||
83 | */ | 83 | */ |
84 | struct meson_i2c { | 84 | struct meson_i2c { |
85 | struct i2c_adapter adap; | 85 | struct i2c_adapter adap; |