linux/drivers/i2c/muxes
Ben Hutchings c0c508a418 i2c: mux: demux-pinctrl: Clean up sysfs attributes
sysfs attributes should use the same format for reads and writes,
rather than pretty-printing on read.

* Make the "cur_master" attribute read back as just the name of the
  master
* Expose the list of all masters as a read-only "available_masters"
  attribute, using space separators as in similar attributes of other
  devices

Also, spell out "cur_master" in full as "current_master".

Fixes: 50a5ba8769 ("i2c: mux: demux-pinctrl: add driver")
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2016-04-01 13:00:07 +02:00
..
i2c-arb-gpio-challenge.c i2c: muxes: fix leaked i2c adapter device node references 2015-08-31 22:40:34 +02:00
i2c-demux-pinctrl.c i2c: mux: demux-pinctrl: Clean up sysfs attributes 2016-04-01 13:00:07 +02:00
i2c-mux-gpio.c i2c: muxes: fix leaked i2c adapter device node references 2015-08-31 22:40:34 +02:00
i2c-mux-pca954x.c i2c: Drop owner assignment from i2c_driver 2015-08-10 08:37:35 +02:00
i2c-mux-pca9541.c i2c: Drop owner assignment from i2c_driver 2015-08-10 08:37:35 +02:00
i2c-mux-pinctrl.c i2c: muxes: fix leaked i2c adapter device node references 2015-08-31 22:40:34 +02:00
i2c-mux-reg.c i2c: mux: reg Change ioread endianness for readback 2015-09-03 11:58:42 +02:00
Kconfig i2c: mux: demux-pinctrl: add driver 2016-02-12 19:16:04 +01:00
Makefile i2c: mux: demux-pinctrl: add driver 2016-02-12 19:16:04 +01:00