summaryrefslogtreecommitdiff
path: root/drivers/iio/magnetometer
diff options
context:
space:
mode:
authorMartin Kelly <martin@martingkelly.com>2018-10-25 19:38:09 -0700
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-11-11 15:29:42 +0000
commit53759e259da43fae0e5322d227ffce60857f2828 (patch)
tree6f65667261c5a6fbbcb70b779d885565d5ffa970 /drivers/iio/magnetometer
parentee2303515e7555abb93297d8b8d8a55b0d156388 (diff)
downloadlinux-riscv-53759e259da43fae0e5322d227ffce60857f2828.tar.gz
linux-riscv-53759e259da43fae0e5322d227ffce60857f2828.tar.bz2
linux-riscv-53759e259da43fae0e5322d227ffce60857f2828.zip
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>
Diffstat (limited to 'drivers/iio/magnetometer')
-rw-r--r--drivers/iio/magnetometer/st_magn_spi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/magnetometer/st_magn_spi.c b/drivers/iio/magnetometer/st_magn_spi.c
index 7b7cd08fcc32..15bb09267098 100644
--- a/drivers/iio/magnetometer/st_magn_spi.c
+++ b/drivers/iio/magnetometer/st_magn_spi.c
@@ -23,6 +23,8 @@
* For new single-chip sensors use <device_name> as compatible string.
* For old single-chip devices keep <device_name>-magn to maintain
* compatibility
+ * For multi-chip devices, use <device_name>-magn to distinguish which
+ * capability is being used
*/
static const struct of_device_id st_magn_of_match[] = {
{