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

iio: magnetometer: add clarifying comment

Add a comment clarifying better when to use <device_name> vs
<device_name>-magn in compatibility strings.

Signed-off-by: Martin Kelly <martin@martingkelly.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Martin Kelly and committed by
Jonathan Cameron
53759e25 ee230351

+2
+2
drivers/iio/magnetometer/st_magn_spi.c
··· 23 23 * For new single-chip sensors use <device_name> as compatible string. 24 24 * For old single-chip devices keep <device_name>-magn to maintain 25 25 * compatibility 26 + * For multi-chip devices, use <device_name>-magn to distinguish which 27 + * capability is being used 26 28 */ 27 29 static const struct of_device_id st_magn_of_match[] = { 28 30 {