Skip to content
/ linux Public

Commit 15b1c18

Browse files
mshychgroeck
authored andcommitted
hwmon: (powr1220) Cosmetic changes
Update code alignments. Signed-off-by: Michael Shych <michaelsh@nvidia.com> Link: https://lore.kernel.org/r/20220118075611.10665-2-michaelsh@nvidia.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent f86380b commit 15b1c18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/hwmon/powr1220.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,20 +111,20 @@ static int powr1220_read_adc(struct device *dev, int ch_num)
111111
mutex_lock(&data->update_lock);
112112

113113
if (time_after(jiffies, data->adc_last_updated[ch_num] + HZ) ||
114-
!data->adc_valid[ch_num]) {
114+
!data->adc_valid[ch_num]) {
115115
/*
116116
* figure out if we need to use the attenuator for
117117
* high inputs or inputs that we don't yet have a measurement
118118
* for. We dynamically set the attenuator depending on the
119119
* max reading.
120120
*/
121121
if (data->adc_maxes[ch_num] > ADC_MAX_LOW_MEASUREMENT_MV ||
122-
data->adc_maxes[ch_num] == 0)
122+
data->adc_maxes[ch_num] == 0)
123123
adc_range = 1 << 4;
124124

125125
/* set the attenuator and mux */
126126
result = i2c_smbus_write_byte_data(data->client, ADC_MUX,
127-
adc_range | ch_num);
127+
adc_range | ch_num);
128128
if (result)
129129
goto exit;
130130

0 commit comments

Comments
 (0)