[PATCH v3 0/4] gpio: sim, virtuser: minor usability enhancements

From: Koichiro Den
Date: Fri Jan 03 2025 - 09:18:58 EST


This is just a minor usability enhancement proposal and some bug fixes for
gpio-virtuser and gpio-sim.

Koichiro Den (4):
gpio: virtuser: fix missing lookup table cleanups
gpio: virtuser: fix handling of multiple conn_ids in lookup table
gpio: virtuser: lock up configfs that an instantiated device depends on
gpio: sim: lock up configfs that an instantiated device depends on

drivers/gpio/gpio-sim.c | 48 ++++++++++++++++---
drivers/gpio/gpio-virtuser.c | 91 +++++++++++++++++++++++++++---------
2 files changed, 110 insertions(+), 29 deletions(-)

---
v2->v3:
- Incorporated feedback from Bartosz:
* introduced gpio_virtuser_remove_lookup_table() as the counterpart to
the existing gpio_virtuser_make_lookup_table()
- Fixed a memory leak that was spotted during the revision.

v1->v2:
- Incorporated feedback from Bartosz:
* added more gpiod_remove_lookup_table() calls where appropriate.
* assigned subsys at declaration.
- Added missing kfree(dev->lookup_table).
- Fixed typos in commit messages.

v2: https://lore.kernel.org/all/20250103030402.81954-1-koichiro.den@xxxxxxxxxxxxx/
v1: https://lore.kernel.org/all/20241224060819.1492472-1-koichiro.den@xxxxxxxxxxxxx/

--
2.43.0