]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
iio: magnetometer: add clarifying comment
authorMartin Kelly <martin@martingkelly.com>
Fri, 26 Oct 2018 02:38:09 +0000 (19:38 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 11 Nov 2018 15:29:42 +0000 (15:29 +0000)
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>
drivers/iio/magnetometer/st_magn_spi.c

index 7b7cd08fcc32cf21de2a5c6a1e49d388daa3d14b..15bb092670989df194c14e9eab9f92c65fe06c45 100644 (file)
@@ -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[] = {
        {