Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Luca Ceresoli and committed by
Wolfram Sang
22714ef8 da9a80bf

+7 -7
+7 -7
Documentation/i2c/instantiating-devices.rst
··· 225 225 what addresses they live at. However, in certain cases, it does not, so a 226 226 sysfs interface was added to let the user provide the information. This 227 227 interface is made of 2 attribute files which are created in every I2C bus 228 - directory: new_device and delete_device. Both files are write only and you 229 - must write the right parameters to them in order to properly instantiate, 230 - respectively delete, an I2C device. 228 + directory: ``new_device`` and ``delete_device``. Both files are write 229 + only and you must write the right parameters to them in order to properly 230 + instantiate, respectively delete, an I2C device. 231 231 232 - File new_device takes 2 parameters: the name of the I2C device (a string) 233 - and the address of the I2C device (a number, typically expressed in 234 - hexadecimal starting with 0x, but can also be expressed in decimal.) 232 + File ``new_device`` takes 2 parameters: the name of the I2C device (a 233 + string) and the address of the I2C device (a number, typically expressed 234 + in hexadecimal starting with 0x, but can also be expressed in decimal.) 235 235 236 - File delete_device takes a single parameter: the address of the I2C 236 + File ``delete_device`` takes a single parameter: the address of the I2C 237 237 device. As no two devices can live at the same address on a given I2C 238 238 segment, the address is sufficient to uniquely identify the device to be 239 239 deleted.