aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib-sysfs.c
AgeCommit message (Expand)AuthorFilesLines
2025-09-12gpiolib: add a common prefix to GPIO descriptor flagsBartosz Golaszewski1-23/+23
2025-07-19gpio: sysfs: Fix an end of loop test in gpiod_unexport()Dan Carpenter1-3/+6
2025-07-16gpio: sysfs: allow disabling the legacy parts of the GPIO sysfs interfaceBartosz Golaszewski1-0/+42
2025-07-16gpio: sysfs: export the GPIO directory locally in the gpiochip<id> directoryBartosz Golaszewski1-1/+50
2025-07-16gpio: sysfs: don't look up exported lines as class devicesBartosz Golaszewski1-16/+44
2025-07-16gpio: sysfs: don't use driver data in sysfs callbacks for line attributesBartosz Golaszewski1-40/+83
2025-07-16gpio: sysfs: rename the data variable in gpiod_(un)export()Bartosz Golaszewski1-18/+18
2025-07-16gpio: sysfs: pass gpiod_data directly to internal GPIO sysfs functionsBartosz Golaszewski1-12/+9
2025-07-16gpio: sysfs: only get the dirent reference for the value attr onceBartosz Golaszewski1-8/+11
2025-07-16gpio: sysfs: add a parallel class device for each GPIO chip using device IDsBartosz Golaszewski1-48/+144
2025-07-16gpio: sysfs: use gpiod_is_equal() to compare GPIO descriptorsBartosz Golaszewski1-1/+1
2025-06-23gpio: sysfs: fix use-after-free in error pathAntonio Quartulli1-1/+3
2025-06-20gpio: sysfs: remove the mockdev pointer from struct gpio_deviceBartosz Golaszewski1-28/+53
2025-06-20gpio: sysfs: remove unneeded headersBartosz Golaszewski1-2/+0
2025-06-20gpio: sysfs: refactor the coding styleBartosz Golaszewski1-33/+34
2025-06-20gpio: sysfs: call mutex_destroy() in gpiod_unexport()Bartosz Golaszewski1-0/+1
2025-04-07gpiolib: don't allow setting values on input linesBartosz Golaszewski1-5/+3
2024-11-04gpio: sysfs: emit chardev line-state events on edge storeBartosz Golaszewski1-2/+12
2024-11-04gpio: sysfs: emit chardev line-state events on active-low changesBartosz Golaszewski1-0/+2
2024-11-04gpio: sysfs: emit chardev line-state events on GPIO exportBartosz Golaszewski1-2/+6
2024-11-04gpio: sysfs: use cleanup guards for the sysfs_lock mutexBartosz Golaszewski1-33/+22
2024-11-04gpio: sysfs: use cleanup guards for gpiod_data::mutexBartosz Golaszewski1-52/+30
2024-10-31gpio: sysfs: demote warning messages on invalid user input to debugBartosz Golaszewski1-3/+3
2024-10-17gpio: sysfs: constify gpio classBartosz Golaszewski1-3/+2
2024-10-02gpio: sysfs: make the sysfs export behavior consistentBartosz Golaszewski1-8/+2
2024-09-02gpiolib: Update the kernel documentation - add Return sectionsAndy Shevchenko1-2/+4
2024-04-17gpiolib: Get rid of never false gpio_is_valid() callsAndy Shevchenko1-1/+1
2024-03-08gpio: sysfs: repair export returning -EPERM on 1st attemptAlexander Sverdlin1-1/+1
2024-02-15gpio: sysfs: fix inverted pointer logicBartosz Golaszewski1-1/+1
2024-02-15gpio: use srcu_dereference() with SRCU-protected pointersBartosz Golaszewski1-2/+3
2024-02-12gpio: protect the pointer to gpio_chip in gpio_device with SRCUBartosz Golaszewski1-16/+41
2024-02-12gpio: sysfs: don't access gdev->chip if it's not neededBartosz Golaszewski1-3/+3
2024-02-12gpio: sysfs: pass the GPIO device - not chip - to sysfs callbacksBartosz Golaszewski1-7/+7
2024-02-12gpio: sysfs: extend the critical section for unregistering sysfs devicesBartosz Golaszewski1-7/+8
2024-02-12gpio: remove gpio_lockBartosz Golaszewski1-11/+6
2024-02-12gpio: sysfs: use gpio_device_find() to iterate over existing devicesBartosz Golaszewski1-23/+23
2024-01-17gpiolib: revert the attempt to protect the GPIO device list with an rwsemBartosz Golaszewski1-21/+24
2024-01-04gpiolib: replace the GPIO device mutex with a read-write semaphoreBartosz Golaszewski1-1/+1
2023-12-27gpio: sysfs: drop tabs from local variable declarationsBartosz Golaszewski1-33/+32
2023-12-27Merge tag 'v6.7-rc7' into gpio/for-nextBartosz Golaszewski1-6/+9
2023-12-18gpiolib: use a mutex to protect the list of GPIO devicesBartosz Golaszewski1-24/+21
2023-12-01gpiolib: sysfs: Fix error handling on failed exportBoerge Struempfel1-6/+9
2023-10-04gpio: sysfs: drop the mention of gpiochip_find() from sysfs codeBartosz Golaszewski1-1/+1
2023-08-16gpiolib: sysfs: Do unexport GPIO when user asks for itAndy Shevchenko1-2/+5
2023-04-27Merge tag 'driver-core-6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-8/+6
2023-03-31driver core: create class_is_registered()Greg Kroah-Hartman1-2/+2
2023-03-29driver core: class: mark the struct class for sysfs callbacks as constantGreg Kroah-Hartman1-4/+4
2023-03-17drivers: remove struct module * setting from struct classGreg Kroah-Hartman1-2/+0
2023-03-06gpiolib: Clean up headersAndy Shevchenko1-5/+16
2023-03-06gpiolib: remove legacy gpio_export()Arnd Bergmann1-2/+2
2022-04-09gpiolib: Embed iterator variable into for_each_gpio_desc_with_flag()Andy Shevchenko1-2/+1
2022-03-25Merge tag 'gpio-updates-for-v5.18' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-60/+40
2022-02-16gpiolib: sysfs: Simplify edge handling in the codeAndy Shevchenko1-26/+14
2022-02-16gpiolib: sysfs: Move kstrtox() calls outside of the mutex lockAndy Shevchenko1-16/+12
2022-02-16gpiolib: sysfs: Move sysfs_emit() calls outside of the mutex lockAndy Shevchenko1-15/+14
2022-02-08gpiolib: Introduce for_each_gpio_desc_with_flag() macroAndy Shevchenko1-5/+2
2022-02-08gpiolib: Never return internal error codes to user spaceAndy Shevchenko1-5/+2
2021-05-21gpiolib: Use sysfs_emit() in "show" functionsAndy Shevchenko1-17/+12
2021-05-21gpiolib: Make use of assign_bit() API (part 2)Andy Shevchenko1-4/+1
2021-03-31gpio: sysfs: Obey valid_maskMatti Vaittinen1-0/+8
2020-10-26gpiolib: Unify expectations about ->request() returned valueAndy Shevchenko1-1/+1
2020-07-12gpiolib: move gpiolib-sysfs function declarations into their own headerKent Gibson1-0/+1
2020-06-15gpiolib: sysfs: use kobj_to_devWang Qing1-1/+1
2019-12-12gpiolib: Add GPIOCHIP_NAME definitionGeert Uytterhoeven1-4/+3
2018-09-25gpio: Use SPDX header for core libraryLinus Walleij1-0/+1
2018-09-17gpio: Get rid of legacy headerLinus Walleij1-8/+2
2017-12-20gpio: sysfs: avoid using kstrtol() in 'value' attribute writeChristophe Leroy1-2/+7
2017-12-20gpio: sysfs: don't use sprintf() for 'value' attributeChristophe Leroy1-1/+3
2017-12-20gpio: sysfs: correct error handling on 'value' attribute read.Christophe Leroy1-1/+5
2017-12-20gpio: sysfs: change 'value' attribute to preallocChristophe Leroy1-1/+1
2017-12-02gpio: gpiolib: Generalise state persistence beyond sleepAndrew Jeffery1-5/+9
2017-09-05Merge tag 'gpio-v4.14-1' of git://git.kernel.org/pub/scm/linux/kernel/git/lin...Linus Torvalds1-4/+4
2017-08-14gpio: sysfs: Fixup kerneldocThierry Reding1-4/+4
2017-08-14gpio: reject invalid gpio before getting gpio_descMasami Hiramatsu1-2/+8
2017-06-09gpio: use class_groups instead of class_attrsGreg Kroah-Hartman1-5/+8
2016-09-12gpio: fix documentation for gpiod_unexportAmitesh Singh1-2/+2
2016-02-25gpio: fix abi regression in sysfsBamvor Jian Zhang1-1/+11
2016-02-11gpio: reflect base and ngpio into gpio_deviceLinus Walleij1-6/+6
2016-02-11gpio: move descriptors into gpio_deviceLinus Walleij1-1/+1
2016-02-11gpio: move sysfs mock device to the gpio_deviceLinus Walleij1-11/+12
2016-02-09gpio: make the gpiochip a real deviceLinus Walleij1-5/+7
2015-11-19gpio: change member .dev to .parentLinus Walleij1-2/+3
2015-05-12gpio: sysfs: move irq trigger flags to class-device dataJohan Hovold1-23/+24
2015-05-12gpio: sysfs: remove FLAG_SYSFS_DIRJohan Hovold1-8/+7
2015-05-12gpio: sysfs: rename active-low helperJohan Hovold1-2/+2
2015-05-12gpio: sysfs: fix race between gpiod export and unexportJohan Hovold1-25/+26
2015-05-12gpio: sysfs: use per-gpio lockingJohan Hovold1-18/+34
2015-05-12gpio: sysfs: clean up gpiod_export_link lockingJohan Hovold1-20/+8
2015-05-12gpio: sysfs: clean up edge_storeJohan Hovold1-5/+7
2015-05-12gpio: sysfs: split irq allocation and deallocationJohan Hovold1-37/+37
2015-05-12gpio: sysfs: only call irq helper if neededJohan Hovold1-5/+14
2015-05-12gpio: sysfs: clean up interrupt-interface implementationJohan Hovold1-36/+18
2015-05-12gpio: sysfs: remove redundant gpio-descriptor parametersJohan Hovold1-13/+11
2015-05-12gpio: sysfs: add gpiod class-device dataJohan Hovold1-16/+46
2015-05-12gpio: sysfs: remove redundant export testsJohan Hovold1-51/+23
2015-05-12gpio: sysfs: release irq after class-device deregistrationJohan Hovold1-1/+5
2015-05-12gpio: sysfs: use DEVICE_ATTR macrosJohan Hovold1-25/+18
2015-05-12gpio: remove gpiod_sysfs_set_active_lowJohan Hovold1-46/+2
2015-05-12gpio: sysfs: rename gpiochip registration functionsJohan Hovold1-7/+9
2015-05-12gpio: sysfs: clean up chip class-device handlingJohan Hovold1-26/+13
2015-05-12gpio: sysfs: reduce gpiochip-export locking scopeJohan Hovold1-3/+4
2015-05-12gpio: sysfs: preparatory clean upsJohan Hovold1-4/+4
2015-05-12gpio: sysfs: fix redundant lock-as-irq handlingJohan Hovold1-7/+15
2015-04-29gpio: sysfs: fix memory leaks and device hotplugJohan Hovold1-0/+19
2015-01-30gpio: sysfs: fix memory leak in gpiod_sysfs_set_active_lowJohan Hovold1-1/+1
2015-01-30gpio: sysfs: fix memory leak in gpiod_export_linkJohan Hovold1-0/+1
2015-01-15gpio: sysfs: fix gpio attribute-creation raceJohan Hovold1-22/+39
2015-01-15gpio: sysfs: fix gpio device-attribute leakJohan Hovold1-15/+13
2015-01-15gpio: sysfs: fix gpio-chip device-attribute leakJohan Hovold1-11/+8
2014-11-28gpio: remove const modifier from gpiod_get_direction()Alexandre Courbot1-1/+1
2014-10-28gpio: rename gpio_lock_as_irq to gpiochip_lock_as_irqAlexandre Courbot1-2/+2
2014-07-24gpio: remove useless check in gpiolib_sysfs_init()Alexandre Courbot1-1/+1
2014-07-23gpio: remove gpiod_lock/unlock_as_irq()Alexandre Courbot1-2/+2
2014-07-23gpio: simplify gpiochip_export()Alexandre Courbot1-11/+9
2014-07-09gpio: move sysfs support to its own fileAlexandre Courbot1-0/+829