device property: Clarify usage scope of some struct fwnode_handle members
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 4 Sep 2023 10:40:46 +0000 (13:40 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Oct 2023 11:11:29 +0000 (13:11 +0200)
Most of the struct fwnode_handle members are for exclusive use with
device links framework. Clarify this by adding a respective comment.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Link: https://lore.kernel.org/r/20230904104046.1682875-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/fwnode.h

index 5700451b300fb514f782d2631a54a0ce90ef3655..2a72f55d26eb89ffde17e0cd9ec345cdf1dcb1c7 100644 (file)
@@ -41,6 +41,8 @@ struct device;
 struct fwnode_handle {
        struct fwnode_handle *secondary;
        const struct fwnode_operations *ops;
+
+       /* The below is used solely by device links, don't use otherwise */
        struct device *dev;
        struct list_head suppliers;
        struct list_head consumers;