i2c: i2c-mux-pca954x: fix deselect enabling for device-tree
Deselect functionality can be ignored for device-trees with
"i2c-mux-idle-disconnect" entries if no platform_data is available.
By enabling the deselect functionality outside the platform_data
block the logic works as it did in previous kernels.
Fixes: 7fcac9807175 ("i2c: i2c-mux-pca954x: convert to use an explicit i2c mux core")
Cc: <email@example.com> # v4.7+
Signed-off-by: Alex Hemme <firstname.lastname@example.org>
Signed-off-by: Ziyang Wu <email@example.com>
[touched up a few minor issues /peda]
Signed-off-by: Peter Rosin <firstname.lastname@example.org>
Signed-off-by: Wolfram Sang <email@example.com>
1 file changed