Skip to content

Commit 1ae5e4c

Browse files
andy-shevgregkh
authored andcommitted
device property: Add a note to the fwnode.h
Add a note to the fwnode.h that the header should not be used directly in the leaf drivers, they all should use the higher level APIs and the respective headers. The purpose of this note is to give guidance to driver writers to avoid repeating a common mistake. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Zijun Hu <quic_zijuhu@quicinc.com> Link: https://lore.kernel.org/r/20250408095229.1298005-1-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a8e858e commit 1ae5e4c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/linux/fwnode.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
/*
33
* fwnode.h - Firmware device node object handle type definition.
44
*
5+
* This header file provides low-level data types and definitions for firmware
6+
* and device property providers. The respective API header files supplied by
7+
* them should contain all of the requisite data types and definitions for end
8+
* users, so including it directly should not be necessary.
9+
*
510
* Copyright (C) 2015, Intel Corporation
611
* Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
712
*/

0 commit comments

Comments
 (0)