Commit ca52c88c authored by Eva Rachel Retuya's avatar Eva Rachel Retuya Committed by Greg Kroah-Hartman

staging: iio: light: indent to match open parenthesis

Indent the parameters to match open parenthesis as suggested by checkpatch.
Signed-off-by: default avatarEva Rachel Retuya <eraretuya@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 911568be
...@@ -314,7 +314,8 @@ static ssize_t show_int_time_available(struct device *dev, ...@@ -314,7 +314,8 @@ static ssize_t show_int_time_available(struct device *dev,
/* proximity scheme */ /* proximity scheme */
static ssize_t show_prox_infrared_suppression(struct device *dev, static ssize_t show_prox_infrared_suppression(struct device *dev,
struct device_attribute *attr, char *buf) struct device_attribute *attr,
char *buf)
{ {
struct iio_dev *indio_dev = dev_to_iio_dev(dev); struct iio_dev *indio_dev = dev_to_iio_dev(dev);
struct isl29018_chip *chip = iio_priv(indio_dev); struct isl29018_chip *chip = iio_priv(indio_dev);
...@@ -325,7 +326,8 @@ static ssize_t show_prox_infrared_suppression(struct device *dev, ...@@ -325,7 +326,8 @@ static ssize_t show_prox_infrared_suppression(struct device *dev,
} }
static ssize_t store_prox_infrared_suppression(struct device *dev, static ssize_t store_prox_infrared_suppression(struct device *dev,
struct device_attribute *attr, const char *buf, size_t count) struct device_attribute *attr,
const char *buf, size_t count)
{ {
struct iio_dev *indio_dev = dev_to_iio_dev(dev); struct iio_dev *indio_dev = dev_to_iio_dev(dev);
struct isl29018_chip *chip = iio_priv(indio_dev); struct isl29018_chip *chip = iio_priv(indio_dev);
...@@ -413,7 +415,8 @@ static int isl29018_read_raw(struct iio_dev *indio_dev, ...@@ -413,7 +415,8 @@ static int isl29018_read_raw(struct iio_dev *indio_dev,
break; break;
case IIO_PROXIMITY: case IIO_PROXIMITY:
ret = isl29018_read_proximity_ir(chip, ret = isl29018_read_proximity_ir(chip,
chip->prox_scheme, val); chip->prox_scheme,
val);
break; break;
default: default:
break; break;
......
...@@ -129,17 +129,20 @@ static int isl29028_set_als_ir_mode(struct isl29028_chip *chip, ...@@ -129,17 +129,20 @@ static int isl29028_set_als_ir_mode(struct isl29028_chip *chip,
switch (mode) { switch (mode) {
case MODE_ALS: case MODE_ALS:
ret = regmap_update_bits(chip->regmap, ISL29028_REG_CONFIGURE, ret = regmap_update_bits(chip->regmap, ISL29028_REG_CONFIGURE,
CONFIGURE_ALS_IR_MODE_MASK, CONFIGURE_ALS_IR_MODE_ALS); CONFIGURE_ALS_IR_MODE_MASK,
CONFIGURE_ALS_IR_MODE_ALS);
if (ret < 0) if (ret < 0)
return ret; return ret;
ret = regmap_update_bits(chip->regmap, ISL29028_REG_CONFIGURE, ret = regmap_update_bits(chip->regmap, ISL29028_REG_CONFIGURE,
CONFIGURE_ALS_RANGE_MASK, CONFIGURE_ALS_RANGE_HIGH_LUX); CONFIGURE_ALS_RANGE_MASK,
CONFIGURE_ALS_RANGE_HIGH_LUX);
break; break;
case MODE_IR: case MODE_IR:
ret = regmap_update_bits(chip->regmap, ISL29028_REG_CONFIGURE, ret = regmap_update_bits(chip->regmap, ISL29028_REG_CONFIGURE,
CONFIGURE_ALS_IR_MODE_MASK, CONFIGURE_ALS_IR_MODE_IR); CONFIGURE_ALS_IR_MODE_MASK,
CONFIGURE_ALS_IR_MODE_IR);
break; break;
case MODE_NONE: case MODE_NONE:
...@@ -264,7 +267,8 @@ static int isl29028_ir_get(struct isl29028_chip *chip, int *ir_data) ...@@ -264,7 +267,8 @@ static int isl29028_ir_get(struct isl29028_chip *chip, int *ir_data)
/* Channel IO */ /* Channel IO */
static int isl29028_write_raw(struct iio_dev *indio_dev, static int isl29028_write_raw(struct iio_dev *indio_dev,
struct iio_chan_spec const *chan, int val, int val2, long mask) struct iio_chan_spec const *chan,
int val, int val2, long mask)
{ {
struct isl29028_chip *chip = iio_priv(indio_dev); struct isl29028_chip *chip = iio_priv(indio_dev);
int ret = -EINVAL; int ret = -EINVAL;
...@@ -323,7 +327,8 @@ static int isl29028_write_raw(struct iio_dev *indio_dev, ...@@ -323,7 +327,8 @@ static int isl29028_write_raw(struct iio_dev *indio_dev,
} }
static int isl29028_read_raw(struct iio_dev *indio_dev, static int isl29028_read_raw(struct iio_dev *indio_dev,
struct iio_chan_spec const *chan, int *val, int *val2, long mask) struct iio_chan_spec const *chan,
int *val, int *val2, long mask)
{ {
struct isl29028_chip *chip = iio_priv(indio_dev); struct isl29028_chip *chip = iio_priv(indio_dev);
int ret = -EINVAL; int ret = -EINVAL;
......
...@@ -491,7 +491,8 @@ static ssize_t taos_power_state_show(struct device *dev, ...@@ -491,7 +491,8 @@ static ssize_t taos_power_state_show(struct device *dev,
} }
static ssize_t taos_power_state_store(struct device *dev, static ssize_t taos_power_state_store(struct device *dev,
struct device_attribute *attr, const char *buf, size_t len) struct device_attribute *attr,
const char *buf, size_t len)
{ {
struct iio_dev *indio_dev = dev_to_iio_dev(dev); struct iio_dev *indio_dev = dev_to_iio_dev(dev);
int value; int value;
...@@ -533,7 +534,8 @@ static ssize_t taos_gain_show(struct device *dev, ...@@ -533,7 +534,8 @@ static ssize_t taos_gain_show(struct device *dev,
} }
static ssize_t taos_gain_store(struct device *dev, static ssize_t taos_gain_store(struct device *dev,
struct device_attribute *attr, const char *buf, size_t len) struct device_attribute *attr,
const char *buf, size_t len)
{ {
struct iio_dev *indio_dev = dev_to_iio_dev(dev); struct iio_dev *indio_dev = dev_to_iio_dev(dev);
struct tsl2583_chip *chip = iio_priv(indio_dev); struct tsl2583_chip *chip = iio_priv(indio_dev);
...@@ -564,7 +566,8 @@ static ssize_t taos_gain_store(struct device *dev, ...@@ -564,7 +566,8 @@ static ssize_t taos_gain_store(struct device *dev,
} }
static ssize_t taos_gain_available_show(struct device *dev, static ssize_t taos_gain_available_show(struct device *dev,
struct device_attribute *attr, char *buf) struct device_attribute *attr,
char *buf)
{ {
return sprintf(buf, "%s\n", "1 8 16 111"); return sprintf(buf, "%s\n", "1 8 16 111");
} }
...@@ -579,7 +582,8 @@ static ssize_t taos_als_time_show(struct device *dev, ...@@ -579,7 +582,8 @@ static ssize_t taos_als_time_show(struct device *dev,
} }
static ssize_t taos_als_time_store(struct device *dev, static ssize_t taos_als_time_store(struct device *dev,
struct device_attribute *attr, const char *buf, size_t len) struct device_attribute *attr,
const char *buf, size_t len)
{ {
struct iio_dev *indio_dev = dev_to_iio_dev(dev); struct iio_dev *indio_dev = dev_to_iio_dev(dev);
struct tsl2583_chip *chip = iio_priv(indio_dev); struct tsl2583_chip *chip = iio_priv(indio_dev);
...@@ -600,7 +604,8 @@ static ssize_t taos_als_time_store(struct device *dev, ...@@ -600,7 +604,8 @@ static ssize_t taos_als_time_store(struct device *dev,
} }
static ssize_t taos_als_time_available_show(struct device *dev, static ssize_t taos_als_time_available_show(struct device *dev,
struct device_attribute *attr, char *buf) struct device_attribute *attr,
char *buf)
{ {
return sprintf(buf, "%s\n", return sprintf(buf, "%s\n",
"50 100 150 200 250 300 350 400 450 500 550 600 650"); "50 100 150 200 250 300 350 400 450 500 550 600 650");
...@@ -616,7 +621,8 @@ static ssize_t taos_als_trim_show(struct device *dev, ...@@ -616,7 +621,8 @@ static ssize_t taos_als_trim_show(struct device *dev,
} }
static ssize_t taos_als_trim_store(struct device *dev, static ssize_t taos_als_trim_store(struct device *dev,
struct device_attribute *attr, const char *buf, size_t len) struct device_attribute *attr,
const char *buf, size_t len)
{ {
struct iio_dev *indio_dev = dev_to_iio_dev(dev); struct iio_dev *indio_dev = dev_to_iio_dev(dev);
struct tsl2583_chip *chip = iio_priv(indio_dev); struct tsl2583_chip *chip = iio_priv(indio_dev);
...@@ -632,7 +638,8 @@ static ssize_t taos_als_trim_store(struct device *dev, ...@@ -632,7 +638,8 @@ static ssize_t taos_als_trim_store(struct device *dev,
} }
static ssize_t taos_als_cal_target_show(struct device *dev, static ssize_t taos_als_cal_target_show(struct device *dev,
struct device_attribute *attr, char *buf) struct device_attribute *attr,
char *buf)
{ {
struct iio_dev *indio_dev = dev_to_iio_dev(dev); struct iio_dev *indio_dev = dev_to_iio_dev(dev);
struct tsl2583_chip *chip = iio_priv(indio_dev); struct tsl2583_chip *chip = iio_priv(indio_dev);
...@@ -641,7 +648,8 @@ static ssize_t taos_als_cal_target_show(struct device *dev, ...@@ -641,7 +648,8 @@ static ssize_t taos_als_cal_target_show(struct device *dev,
} }
static ssize_t taos_als_cal_target_store(struct device *dev, static ssize_t taos_als_cal_target_store(struct device *dev,
struct device_attribute *attr, const char *buf, size_t len) struct device_attribute *attr,
const char *buf, size_t len)
{ {
struct iio_dev *indio_dev = dev_to_iio_dev(dev); struct iio_dev *indio_dev = dev_to_iio_dev(dev);
struct tsl2583_chip *chip = iio_priv(indio_dev); struct tsl2583_chip *chip = iio_priv(indio_dev);
...@@ -669,7 +677,8 @@ static ssize_t taos_lux_show(struct device *dev, struct device_attribute *attr, ...@@ -669,7 +677,8 @@ static ssize_t taos_lux_show(struct device *dev, struct device_attribute *attr,
} }
static ssize_t taos_do_calibrate(struct device *dev, static ssize_t taos_do_calibrate(struct device *dev,
struct device_attribute *attr, const char *buf, size_t len) struct device_attribute *attr,
const char *buf, size_t len)
{ {
struct iio_dev *indio_dev = dev_to_iio_dev(dev); struct iio_dev *indio_dev = dev_to_iio_dev(dev);
int value; int value;
...@@ -707,7 +716,8 @@ static ssize_t taos_luxtable_show(struct device *dev, ...@@ -707,7 +716,8 @@ static ssize_t taos_luxtable_show(struct device *dev,
} }
static ssize_t taos_luxtable_store(struct device *dev, static ssize_t taos_luxtable_store(struct device *dev,
struct device_attribute *attr, const char *buf, size_t len) struct device_attribute *attr,
const char *buf, size_t len)
{ {
struct iio_dev *indio_dev = dev_to_iio_dev(dev); struct iio_dev *indio_dev = dev_to_iio_dev(dev);
struct tsl2583_chip *chip = iio_priv(indio_dev); struct tsl2583_chip *chip = iio_priv(indio_dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment