Skip to contentSkip to conversation

README: mention the Linux 5.10 requirement for libgpiod v2

PATCH In review Bartosz Golaszewski 2 participants 3 messages Jan 16, 2024 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 README: mention the Linux 5.10 requirement for libgpiod v2

From: Bartosz Golaszewski <[email protected]>

Major version 2 of libgpiod requires linux kernel uAPI v2 to be available. This was released in Linux 5.10 so mention it in the README.

---
v1 -> v2:
- reword as suggested by Kent

 README | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
README +3 -2
index 632aab3..6063f43 100644
@@ -8,8 +8,9 @@ libgpiod
              character device (gpiod stands for GPIO device)
 
 Since linux 4.8 the GPIO sysfs interface is deprecated. User space should use
-the character device instead. This library encapsulates the ioctl calls and
-data structures behind a straightforward API.
+the character device instead. Version 2 of libgpiod requires GPIO character
+device uAPI v2 which was first released in linux v5.10. This library
+encapsulates the ioctl calls and data structures behind a straightforward API.
 
 RATIONALE
 ---------
Signature · 1 line
2.40.1
#1 lore raw
Quoted 19 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Major version 2 of libgpiod requires linux kernel uAPI v2 to be available. This was released in Linux 5.10 so mention it in the README.

---
v1 -> v2:
- reword as suggested by Kent

 README | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
README +0 -0
index 632aab3..6063f43 100644

README libgpiod · line 14

Quoted 9 lines
README +3 -2
@@ -8,8 +8,9 @@ libgpiod
              character device (gpiod stands for GPIO device)
 
 Since linux 4.8 the GPIO sysfs interface is deprecated. User space should use
-the character device instead. This library encapsulates the ioctl calls and
-data structures behind a straightforward API.
+the character device instead. Version 2 of libgpiod requires GPIO character
+device uAPI v2 which was first released in linux v5.10. This library
+encapsulates the ioctl calls and data structures behind a straightforward API.
 

Minor nit - drop the "v" in v5.10 to be consistent with other use, including the 4.8 in the same paragraph?

Cheers,
Kent.

#2 lore raw
Quoted 23 lines · Kent Gibson
Quoted 21 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Major version 2 of libgpiod requires linux kernel uAPI v2 to be available. This was released in Linux 5.10 so mention it in the README.

---
v1 -> v2:
- reword as suggested by Kent

 README | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
README +0 -0
index 632aab3..6063f43 100644
@@ -8,8 +8,9 @@ libgpiod
              character device (gpiod stands for GPIO device)
 
Quoted 11 lines

README libgpiod · line 14

Quoted 7 lines
README +3 -2
 Since linux 4.8 the GPIO sysfs interface is deprecated. User space should use
-the character device instead. This library encapsulates the ioctl calls and
-data structures behind a straightforward API.
+the character device instead. Version 2 of libgpiod requires GPIO character
+device uAPI v2 which was first released in linux v5.10. This library
+encapsulates the ioctl calls and data structures behind a straightforward API.
 

Minor nit - drop the "v" in v5.10 to be consistent with other use, including the 4.8 in the same paragraph?

Sure, I'll change it when applying.

Bart