Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: kx022a: document new chip_info structure members

The kx022a driver supports a few different HW variants. A chip-info
structure is used to describe sensor specific details. Support for
sensors with different measurement g-ranges was added recently,
introducing sensor specific scale arrays.

The members of the chip-info structure have been documented using
kerneldoc. The newly added members omitted the documentation. It is nice
to have all the entries documented for the sake of the consistency.
Furthermore, the scale table format may not be self explatonary, nor how
the amount of scales is informed.

Add documentation to scale table entries to maintain consistency and to
make it more obvious how the scales should be represented.

Suggested-by: Mehdi Djait <mehdi.djait@linux.intel.com>
Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Reviewed-by: Mehdi Djait <mehdi.djait@linux.intel.com>
Link: https://patch.msgid.link/Z1LDUj-naUdGSM6n@mva-rohm
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Matti Vaittinen and committed by
Jonathan Cameron
a8ec0b44 56f8c175

+8
+8
drivers/iio/accel/kionix-kx022a.h
··· 137 137 * 138 138 * @name: name of the device 139 139 * @regmap_config: pointer to register map configuration 140 + * @scale_table: An array of tables of scaling factors for 141 + * a supported acceleration measurement range. 142 + * Each table containing a single scaling 143 + * factor consisting of two integers. The first 144 + * value in a table is the integer part, and 145 + * the second value is the fractional part as 146 + * parts per billion. 147 + * @scale_table_size: Amount of values in tables. 140 148 * @channels: pointer to iio_chan_spec array 141 149 * @num_channels: number of iio_chan_spec channels 142 150 * @fifo_length: number of 16-bit samples in a full buffer