Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83666102 authored by Wolfram Sang's avatar Wolfram Sang Committed by Wolfram Sang
Browse files

i2c: slave: fix the example how to instantiate from userspace



I copied the wrong shell code into the documentation. Sorry to all who
tried to get sense out of this current example :/ Slight rewording while
we are here.

Reported-by: default avatarTim Bakker <bakkert@mymail.vcu.edu>
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
parent 0f57d867
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -31,10 +31,10 @@ User manual
===========

I2C slave backends behave like standard I2C clients. So, you can instantiate
them like described in the document 'instantiating-devices'. A quick example
for instantiating the slave-eeprom driver from userspace:
them as described in the document 'instantiating-devices'. A quick example for
instantiating the slave-eeprom driver from userspace at address 0x64 on bus 1:

  # echo 0-0064 > /sys/bus/i2c/drivers/i2c-slave-eeprom/bind
  # echo slave-24c02 0x64 > /sys/bus/i2c/devices/i2c-1/new_device

Each backend should come with separate documentation to describe its specific
behaviour and setup.