Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354222
b: refs/heads/master
c: a9e244f
h: refs/heads/master
v: v3
  • Loading branch information
Jonathan Cameron committed Jan 26, 2013
1 parent 172e1ed commit a69ade9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5ade7633ac324098b31ae859f83cee73129d74d3
refs/heads/master: a9e244f65df170ae6efba03bdb0a203626ae1cd3
18 changes: 5 additions & 13 deletions trunk/drivers/staging/iio/light/tsl2563.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,10 @@ static int tsl2563_configure(struct tsl2563_chip *chip)
ret = i2c_smbus_write_byte_data(chip->client,
TSL2563_CMD | TSL2563_REG_LOWHIGH,
(chip->low_thres >> 8) & 0xFF);
/* Interrupt register is automatically written anyway if it is relevant
so is not here */
/*
* Interrupt register is automatically written anyway if it is relevant
* so is not here.
*/
error_ret:
return ret;
}
Expand Down Expand Up @@ -423,9 +425,7 @@ static const struct tsl2563_lux_coeff lux_table[] = {
},
};

/*
* Convert normalized, scaled ADC values to lux.
*/
/* Convert normalized, scaled ADC values to lux. */
static unsigned int adc_to_lux(u32 adc0, u32 adc1)
{
const struct tsl2563_lux_coeff *lp = lux_table;
Expand All @@ -441,11 +441,6 @@ static unsigned int adc_to_lux(u32 adc0, u32 adc1)
return (unsigned int) (lux >> ADC_FRAC_BITS);
}

/*--------------------------------------------------------------*/
/* Sysfs interface */
/*--------------------------------------------------------------*/


/* Apply calibration coefficient to ADC count. */
static u32 calib_adc(u32 adc, u32 calib)
{
Expand Down Expand Up @@ -684,9 +679,6 @@ static int tsl2563_read_interrupt_config(struct iio_dev *indio_dev,
return ret;
}

/*--------------------------------------------------------------*/
/* Probe, Attach, Remove */
/*--------------------------------------------------------------*/
static struct i2c_driver tsl2563_i2c_driver;

static const struct iio_info tsl2563_info_no_irq = {
Expand Down

0 comments on commit a69ade9

Please sign in to comment.