Re: [PATCH v3 10/10] iio: adc: ti-ads1015: Switch to read_avail

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

 



On 3/21/22 10:27, Andy Shevchenko wrote:
On Sun, Mar 20, 2022 at 8:14 PM Marek Vasut <marex@xxxxxxx> wrote:

Replace sysfs attributes with read_avail() callback. This also permits
removal of ads1115_info, since the scale attribute tables are now part
of chip data.

...

+static const int ads1015_fullscale_range[] = {
         6144, 4096, 2048, 1024, 512, 256, 256, 256

Keep a comma at the end.
Also applies to the rest of the modified data structures below.

Why ? We don't expect these arrays to grow new values, if there is ever some new ADC, it will likely have its own array.



[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