i2c: mux: demux-pinctrl: invalidate properly when switching fails
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 22 Aug 2016 14:52:21 +0000 (16:52 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 25 Aug 2016 16:41:34 +0000 (18:41 +0200)
commit9a5382e8ffe86412f442f6a34fde43f94aae530b
tree54b138595fd10d1b23db33fc65afcb200a1bfdc0
parentfa8410b355251fd30341662a40ac6b22d3e38468
i2c: mux: demux-pinctrl: invalidate properly when switching fails

Make sure the index to the active channel is invalidated when switching
fails.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/muxes/i2c-demux-pinctrl.c