diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2026-05-12 19:39:11 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-05-22 14:36:24 +0300 |
| commit | cdd4c98d5a0e320b18fcdbd37a30a732aec624da (patch) | |
| tree | 85c50d153d090c8d8f3b24d0937c37fc8e0e09e9 /include/linux | |
| parent | 36d74f17e03f7e60e1b08fbe16cfad6e69cc3aa9 (diff) | |
| download | linux-cdd4c98d5a0e320b18fcdbd37a30a732aec624da.tar.xz | |
driver core: Delete DEVICE_ATTR_PREALLOC()
This macro is unused and would create extra work during the upcoming
constification of device attributes. Remove it.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://patch.msgid.link/20260512-sysfs-const-attr-device_attr-prep-v3-1-cb7c17b34d52@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/device.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index ac05c6e0af1b..5daed9c92979 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -157,19 +157,6 @@ ssize_t device_show_string(struct device *dev, struct device_attribute *attr, struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store) /** - * DEVICE_ATTR_PREALLOC - Define a preallocated device attribute. - * @_name: Attribute name. - * @_mode: File mode. - * @_show: Show handler. Optional, but mandatory if attribute is readable. - * @_store: Store handler. Optional, but mandatory if attribute is writable. - * - * Like DEVICE_ATTR(), but ``SYSFS_PREALLOC`` is set on @_mode. - */ -#define DEVICE_ATTR_PREALLOC(_name, _mode, _show, _store) \ - struct device_attribute dev_attr_##_name = \ - __ATTR_PREALLOC(_name, _mode, _show, _store) - -/** * DEVICE_ATTR_RW - Define a read-write device attribute. * @_name: Attribute name. * |
