Skip to content

Commit 159e851

Browse files
Sakari Ailusrafaeljw
authored andcommitted
ACPI: property: Make acpi_get_next_subnode() static
acpi_get_next_subnode() is only used in drivers/acpi/property.c. Remove its prototype from include/linux/acpi.h and make it static. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> Link: https://patch.msgid.link/20251001104320.1272752-2-sakari.ailus@linux.intel.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent f3f313c commit 159e851

2 files changed

Lines changed: 4 additions & 13 deletions

File tree

drivers/acpi/property.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,13 +1329,14 @@ static int stop_on_next(struct acpi_device *adev, void *data)
13291329
return 0;
13301330
}
13311331

1332-
/**
1332+
/*
13331333
* acpi_get_next_subnode - Return the next child node handle for a fwnode
13341334
* @fwnode: Firmware node to find the next child node for.
13351335
* @child: Handle to one of the device's child nodes or a null handle.
13361336
*/
1337-
struct fwnode_handle *acpi_get_next_subnode(const struct fwnode_handle *fwnode,
1338-
struct fwnode_handle *child)
1337+
static struct fwnode_handle *
1338+
acpi_get_next_subnode(const struct fwnode_handle *fwnode,
1339+
struct fwnode_handle *child)
13391340
{
13401341
struct acpi_device *adev = to_acpi_device_node(fwnode);
13411342

include/linux/acpi.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,9 +1349,6 @@ acpi_data_add_props(struct acpi_device_data *data, const guid_t *guid,
13491349
int acpi_node_prop_get(const struct fwnode_handle *fwnode, const char *propname,
13501350
void **valptr);
13511351

1352-
struct fwnode_handle *acpi_get_next_subnode(const struct fwnode_handle *fwnode,
1353-
struct fwnode_handle *child);
1354-
13551352
struct acpi_probe_entry;
13561353
typedef bool (*acpi_probe_entry_validate_subtbl)(struct acpi_subtable_header *,
13571354
struct acpi_probe_entry *);
@@ -1450,13 +1447,6 @@ static inline int acpi_node_prop_get(const struct fwnode_handle *fwnode,
14501447
return -ENXIO;
14511448
}
14521449

1453-
static inline struct fwnode_handle *
1454-
acpi_get_next_subnode(const struct fwnode_handle *fwnode,
1455-
struct fwnode_handle *child)
1456-
{
1457-
return NULL;
1458-
}
1459-
14601450
static inline struct fwnode_handle *
14611451
acpi_graph_get_next_endpoint(const struct fwnode_handle *fwnode,
14621452
struct fwnode_handle *prev)

0 commit comments

Comments
 (0)