Skip to content

Commit 64309e4

Browse files
author
Bartosz Golaszewski
committed
gpio: shared-proxy: set suppress_bind_attrs
User-space must not fiddle with shared-proxy auxiliary devices. Disable bind/unbind attributes in sysfs. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 114e594 commit 64309e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpio/gpio-shared-proxy.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ MODULE_DEVICE_TABLE(auxiliary, gpio_shared_proxy_id_table);
322322
static struct auxiliary_driver gpio_shared_proxy_driver = {
323323
.driver = {
324324
.name = "gpio-shared-proxy",
325+
.suppress_bind_attrs = true,
325326
},
326327
.probe = gpio_shared_proxy_probe,
327328
.id_table = gpio_shared_proxy_id_table,

0 commit comments

Comments
 (0)