docs: i2c: instantiating-devices: use monospace for sysfs attributes

Use a monospace (literal) formatting for better readability of sysfs
attributes.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
Luca Ceresoli 2020-01-29 16:19:47 +01:00 committed by Wolfram Sang
parent da9a80bf19
commit 22714ef854

View File

@ -225,15 +225,15 @@ In general, the kernel should know which I2C devices are connected and
what addresses they live at. However, in certain cases, it does not, so a what addresses they live at. However, in certain cases, it does not, so a
sysfs interface was added to let the user provide the information. This sysfs interface was added to let the user provide the information. This
interface is made of 2 attribute files which are created in every I2C bus interface is made of 2 attribute files which are created in every I2C bus
directory: new_device and delete_device. Both files are write only and you directory: ``new_device`` and ``delete_device``. Both files are write
must write the right parameters to them in order to properly instantiate, only and you must write the right parameters to them in order to properly
respectively delete, an I2C device. instantiate, respectively delete, an I2C device.
File new_device takes 2 parameters: the name of the I2C device (a string) File ``new_device`` takes 2 parameters: the name of the I2C device (a
and the address of the I2C device (a number, typically expressed in string) and the address of the I2C device (a number, typically expressed
hexadecimal starting with 0x, but can also be expressed in decimal.) in hexadecimal starting with 0x, but can also be expressed in decimal.)
File delete_device takes a single parameter: the address of the I2C File ``delete_device`` takes a single parameter: the address of the I2C
device. As no two devices can live at the same address on a given I2C device. As no two devices can live at the same address on a given I2C
segment, the address is sufficient to uniquely identify the device to be segment, the address is sufficient to uniquely identify the device to be
deleted. deleted.