Skip to content

gpio: pcf857x: Implement get_multiple/set_multiple methods

Radu Rendec linux-gpio 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyApplied
  2. v11 patch 2 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3gpio: pcf857x: Replace 'unsigned' with 'unsigned int'drivers/gpio/gpio-pcf857x.c+11 -110 replies
2/3gpio: pcf857x: Fix indentation of variable declarationsdrivers/gpio/gpio-pcf857x.c+15 -150 replies
3/3gpio: pcf857x: Implement get_multiple/set_multiple methodsdrivers/gpio/gpio-pcf857x.c+29 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] gpio: pcf857x: Implement get_multiple/set_multiple methods

The first two patches are just cosmetic changes. The actual changes are in the third patch. They are all bundled together in a patch series just because the third patch doesn't apply cleanly without the other two.

Change description from the third patch:

This change allows the GPIO core to read/change multiple pins in a single driver call and subsequent I2C transfer. It helps a lot with PCF857x devices, since their I2C protocol always reads/changes all existing pins anyway. Therefore, when the GPIO client code does a bulk operation on multiple pins, the driver makes a single I2C transfer.

Radu Rendec (3):
gpio: pcf857x: Replace 'unsigned' with 'unsigned int'
gpio: pcf857x: Fix indentation of variable declarations
gpio: pcf857x: Implement get_multiple/set_multiple methods

 drivers/gpio/gpio-pcf857x.c | 79 +++++++++++++++++++++++++------------
 1 file changed, 54 insertions(+), 25 deletions(-)
Signature · 1 line
2.39.0