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

leds: lm3532: Fix warnings for undefined parameters

Fix warnings for undefined parameters when W=1 is used.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
Reviewed-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Pavel Machek <pavel@ucw.cz>

authored by

Dan Murphy and committed by
Pavel Machek
9e955a42 b5a3b44f

+25 -25
+25 -25
drivers/leds/leds-lm3532.c
··· 96 96 97 97 /* 98 98 * struct lm3532_als_data 99 - * @config - value of ALS configuration register 100 - * @als1_imp_sel - value of ALS1 resistor select register 101 - * @als2_imp_sel - value of ALS2 resistor select register 102 - * @als_avrg_time - ALS averaging time 103 - * @als_input_mode - ALS input mode for brightness control 104 - * @als_vmin - Minimum ALS voltage 105 - * @als_vmax - Maximum ALS voltage 106 - * @zone_lo - values of ALS lo ZB(Zone Boundary) registers 107 - * @zone_hi - values of ALS hi ZB(Zone Boundary) registers 99 + * @config: value of ALS configuration register 100 + * @als1_imp_sel: value of ALS1 resistor select register 101 + * @als2_imp_sel: value of ALS2 resistor select register 102 + * @als_avrg_time: ALS averaging time 103 + * @als_input_mode: ALS input mode for brightness control 104 + * @als_vmin: Minimum ALS voltage 105 + * @als_vmax: Maximum ALS voltage 106 + * @zone_lo: values of ALS lo ZB(Zone Boundary) registers 107 + * @zone_hi: values of ALS hi ZB(Zone Boundary) registers 108 108 */ 109 109 struct lm3532_als_data { 110 110 u8 config; ··· 121 121 /** 122 122 * struct lm3532_led 123 123 * @led_dev: led class device 124 - * @priv - Pointer the device data structure 125 - * @control_bank - Control bank the LED is associated to 126 - * @mode - Mode of the LED string 127 - * @ctrl_brt_pointer - Zone target register that controls the sink 128 - * @num_leds - Number of LED strings are supported in this array 129 - * @full_scale_current - The full-scale current setting for the current sink. 130 - * @led_strings - The LED strings supported in this array 131 - * @enabled - Enabled status 124 + * @priv: Pointer the device data structure 125 + * @control_bank: Control bank the LED is associated to 126 + * @mode: Mode of the LED string 127 + * @ctrl_brt_pointer: Zone target register that controls the sink 128 + * @num_leds: Number of LED strings are supported in this array 129 + * @full_scale_current: The full-scale current setting for the current sink. 130 + * @led_strings: The LED strings supported in this array 131 + * @enabled: Enabled status 132 132 */ 133 133 struct lm3532_led { 134 134 struct led_classdev led_dev; ··· 145 145 146 146 /** 147 147 * struct lm3532_data 148 - * @enable_gpio - Hardware enable gpio 148 + * @enable_gpio: Hardware enable gpio 149 149 * @regulator: regulator 150 150 * @client: i2c client 151 - * @regmap - Devices register map 152 - * @dev - Pointer to the devices device struct 153 - * @lock - Lock for reading/writing the device 154 - * @als_data - Pointer to the als data struct 155 - * @runtime_ramp_up - Runtime ramp up setting 156 - * @runtime_ramp_down - Runtime ramp down setting 157 - * @leds - Array of LED strings 151 + * @regmap: Devices register map 152 + * @dev: Pointer to the devices device struct 153 + * @lock: Lock for reading/writing the device 154 + * @als_data: Pointer to the als data struct 155 + * @runtime_ramp_up: Runtime ramp up setting 156 + * @runtime_ramp_down: Runtime ramp down setting 157 + * @leds: Array of LED strings 158 158 */ 159 159 struct lm3532_data { 160 160 struct gpio_desc *enable_gpio;