Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
i2c-tools: update patch for v4.2
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Williams <[email protected]>
Change-Id: I08e8cc1c71ad2ecc3c1a1f9783215aaa8f27c886
  • Loading branch information
williamspatrick authored and geissonator committed Dec 2, 2020
1 parent 4a6971d commit c52fa21
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From b5e7f70c9c43d9a0f819ac2f9942cefca5a79875 Mon Sep 17 00:00:00 2001
From 095558dd36c300bc0f4796a6d55c026a5066ceca Mon Sep 17 00:00:00 2001
From: Crestez Dan Leonard <[email protected]>
Date: Fri, 13 May 2016 21:54:25 +0300
Subject: [PATCH] i2cget: Add support for i2c block data
Expand All @@ -17,7 +17,7 @@ Signed-off-by: Brad Bishop <[email protected]>
1 file changed, 51 insertions(+), 10 deletions(-)

diff --git a/tools/i2cget.c b/tools/i2cget.c
index d2ed56a..83e57f7 100644
index 1db4f39..f2c6423 100644
--- a/tools/i2cget.c
+++ b/tools/i2cget.c
@@ -41,14 +41,16 @@ static void help(void) __attribute__ ((noreturn));
Expand All @@ -27,7 +27,7 @@ index d2ed56a..83e57f7 100644
- "Usage: i2cget [-f] [-y] [-a] I2CBUS CHIP-ADDRESS [DATA-ADDRESS [MODE]]\n"
+ "Usage: i2cget [-f] [-y] [-a] I2CBUS CHIP-ADDRESS [DATA-ADDRESS [MODE] [LENGTH]]\n"
" I2CBUS is an integer or an I2C bus name\n"
" ADDRESS is an integer (0x03 - 0x77, or 0x00 - 0x7f if -a is given)\n"
" ADDRESS is an integer (0x08 - 0x77, or 0x00 - 0x7f if -a is given)\n"
" MODE is one of:\n"
" b (read byte data, default)\n"
" w (read word data)\n"
Expand Down Expand Up @@ -157,5 +157,5 @@ index d2ed56a..83e57f7 100644
exit(0);
}
--
2.20.1
2.26.2

0 comments on commit c52fa21

Please sign in to comment.