Re: [PATCH v2 3/3] staging: iio: light: isl29018: Use standard sysfs attributes for scale and integration time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jun 27, 2015 at 12:34 PM, Hartmut Knaack <knaack.h@xxxxxx> wrote:
> Roberta Dobrescu schrieb am 16.04.2015 um 21:20:
>> This patch refactors the isl29018 driver code in order to use standard
>> sysfs attributes for scale and integration time.
>>
>> ISL29018 light sensor uses four ranges and four ADC's resolutions
>> which influence the calculated lux. Adc resolution is strongly
>> connected to integration time and range should be controlled by scale.
>>
>> This patch introduces the usage of integration time and scale instead
>> of adc resolution and range.
>>
>> Signed-off-by: Roberta Dobrescu <roberta.dobrescu@xxxxxxxxx>
>> ---
>>  drivers/staging/iio/light/isl29018.c | 224 +++++++++++++++++++++++++++--------
>>  1 file changed, 175 insertions(+), 49 deletions(-)
>>
>> diff --git a/drivers/staging/iio/light/isl29018.c b/drivers/staging/iio/light/isl29018.c
>> index ffc3d1b..435d417 100644
>> --- a/drivers/staging/iio/light/isl29018.c
>> +++ b/drivers/staging/iio/light/isl29018.c
>> @@ -66,6 +66,39 @@
>>  #define ISL29035_BOUT_SHIFT          0x07
>>  #define ISL29035_BOUT_MASK           (0x01 << ISL29035_BOUT_SHIFT)
>>
>> +#define ISL29018_INT_TIME_AVAIL              "0.090000 0.005630 0.000351 0.000021"
>> +#define ISL29023_INT_TIME_AVAIL              "0.090000 0.005600 0.000352 0.000022"
>> +#define ISL29035_INT_TIME_AVAIL              "0.105000 0.006500 0.000410 0.000025"
>> +
>> +static const char * const int_time_avail[] = {
>> +     ISL29018_INT_TIME_AVAIL,
>> +     ISL29023_INT_TIME_AVAIL,
>> +     ISL29035_INT_TIME_AVAIL,
>> +};
>> +
>
> Hi Roberta,
> are you still working to get this one out of staging? You introduced here the
> int_time_avail array (missing prefix), although you don't make use of it down
> in show_int_time_available() (also missing prefix), where I would expect it to
> be used. So, what's the status? Do you intend to use this array later on, or
> can it be dropped?
> Just for completeness: show_scale_available also misses a prefix.

Hi Hartmut,

Yes are still working to get this out of staging, but it wasn't a top priority.
I hope to have it finished by the end of July.

thanks,
Daniel.
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux