Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Input: drv260x - fix kernel-doc formatting and remove one abuse

Fixes the following W=1 kernel build warning(s):

drivers/input/misc/drv260x.c:194: warning: Function parameter or member 'input_dev' not described in 'drv260x_data'
drivers/input/misc/drv260x.c:194: warning: Function parameter or member 'client' not described in 'drv260x_data'
drivers/input/misc/drv260x.c:194: warning: Function parameter or member 'regmap' not described in 'drv260x_data'
drivers/input/misc/drv260x.c:194: warning: Function parameter or member 'work' not described in 'drv260x_data'
drivers/input/misc/drv260x.c:194: warning: Function parameter or member 'enable_gpio' not described in 'drv260x_data'
drivers/input/misc/drv260x.c:194: warning: Function parameter or member 'regulator' not described in 'drv260x_data'
drivers/input/misc/drv260x.c:194: warning: Function parameter or member 'magnitude' not described in 'drv260x_data'
drivers/input/misc/drv260x.c:194: warning: Function parameter or member 'mode' not described in 'drv260x_data'
drivers/input/misc/drv260x.c:194: warning: Function parameter or member 'library' not described in 'drv260x_data'
drivers/input/misc/drv260x.c:194: warning: Function parameter or member 'rated_voltage' not described in 'drv260x_data'
drivers/input/misc/drv260x.c:194: warning: Function parameter or member 'overdrive_voltage' not described in 'drv260x_data'
drivers/input/misc/drv260x.c:244: warning: Function parameter or member 'voltage' not described in 'drv260x_calculate_voltage'

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20201104162427.2984742-17-lee.jones@linaro.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Lee Jones and committed by
Dmitry Torokhov
463a74c2 3fe781f4

+13 -13
+13 -13
drivers/input/misc/drv260x.c
··· 167 167 168 168 /** 169 169 * struct drv260x_data - 170 - * @input_dev - Pointer to the input device 171 - * @client - Pointer to the I2C client 172 - * @regmap - Register map of the device 173 - * @work - Work item used to off load the enable/disable of the vibration 174 - * @enable_gpio - Pointer to the gpio used for enable/disabling 175 - * @regulator - Pointer to the regulator for the IC 176 - * @magnitude - Magnitude of the vibration event 177 - * @mode - The operating mode of the IC (LRA_NO_CAL, ERM or LRA) 178 - * @library - The vibration library to be used 179 - * @rated_voltage - The rated_voltage of the actuator 180 - * @overdriver_voltage - The over drive voltage of the actuator 170 + * @input_dev: Pointer to the input device 171 + * @client: Pointer to the I2C client 172 + * @regmap: Register map of the device 173 + * @work: Work item used to off load the enable/disable of the vibration 174 + * @enable_gpio: Pointer to the gpio used for enable/disabling 175 + * @regulator: Pointer to the regulator for the IC 176 + * @magnitude: Magnitude of the vibration event 177 + * @mode: The operating mode of the IC (LRA_NO_CAL, ERM or LRA) 178 + * @library: The vibration library to be used 179 + * @rated_voltage: The rated_voltage of the actuator 180 + * @overdrive_voltage: The over drive voltage of the actuator 181 181 **/ 182 182 struct drv260x_data { 183 183 struct input_dev *input_dev; ··· 234 234 #define DRV260X_DEF_RATED_VOLT 0x90 235 235 #define DRV260X_DEF_OD_CLAMP_VOLT 0x90 236 236 237 - /** 237 + /* 238 238 * Rated and Overdriver Voltages: 239 239 * Calculated using the formula r = v * 255 / 5.6 240 240 * where r is what will be written to the register 241 241 * and v is the rated or overdriver voltage of the actuator 242 - **/ 242 + */ 243 243 static int drv260x_calculate_voltage(unsigned int voltage) 244 244 { 245 245 return (voltage * 255 / 5600);