| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * attribute_container.h - a generic container for all classes |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 2005 - James Bottomley <James.Bottomley@steeleye.com> |
|---|
| 5 | | - * |
|---|
| 6 | | - * This file is licensed under GPLv2 |
|---|
| 7 | 6 | */ |
|---|
| 8 | 7 | |
|---|
| 9 | 8 | #ifndef _ATTRIBUTE_CONTAINER_H_ |
|---|
| .. | .. |
|---|
| 55 | 54 | int (*fn)(struct attribute_container *, |
|---|
| 56 | 55 | struct device *, |
|---|
| 57 | 56 | 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 *)); |
|---|
| 58 | 64 | void attribute_container_trigger(struct device *dev, |
|---|
| 59 | 65 | int (*fn)(struct attribute_container *, |
|---|
| 60 | 66 | struct device *)); |
|---|