i2c: mux: pca954x: make use of __i2c_smbus_xfer
authorPeter Rosin <peda@axentia.se>
Wed, 20 Jun 2018 08:51:56 +0000 (10:51 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 3 Jul 2018 20:57:47 +0000 (22:57 +0200)
commit1bcb852f5bff7ae9b94777b4d844818f07b02bcd
treeea1e5f02003f549119ea58c1195292d4a6e7809b
parenta5306b803419f1fb0bf7627fcb9afd1a7d9b158c
i2c: mux: pca954x: make use of __i2c_smbus_xfer

This simplifies the code, and you get retries for free if the adapter
does not support ->master_xfer.

Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/muxes/i2c-mux-pca954x.c