hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/include/linux/attribute_container.h
....@@ -1,9 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * attribute_container.h - a generic container for all classes
34 *
45 * Copyright (c) 2005 - James Bottomley <James.Bottomley@steeleye.com>
5
- *
6
- * This file is licensed under GPLv2
76 */
87
98 #ifndef _ATTRIBUTE_CONTAINER_H_
....@@ -55,6 +54,13 @@
5554 int (*fn)(struct attribute_container *,
5655 struct device *,
5756 struct device *));
57
+int attribute_container_device_trigger_safe(struct device *dev,
58
+ int (*fn)(struct attribute_container *,
59
+ struct device *,
60
+ struct device *),
61
+ int (*undo)(struct attribute_container *,
62
+ struct device *,
63
+ struct device *));
5864 void attribute_container_trigger(struct device *dev,
5965 int (*fn)(struct attribute_container *,
6066 struct device *));