linux/drivers/staging/typec
Rui Miguel Silva 50b7c322cf staging: typec: fusb302: refactor resume retry mechanism
The i2c functions need to test the pm_suspend state and do, if needed, some
retry before i2c operations. This code was repeated 4x.

To isolate this, create a new function to check suspend state and call it in
every need place.

As at it, move the error message from pr_err to dev_err.

Signed-off-by: Rui Miguel Silva <rmfrfs@gmail.com>
Acked-by: Yueyao Zhu <yueyao.zhu@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-05-16 14:23:31 +02:00
..
fusb302 staging: typec: fusb302: refactor resume retry mechanism 2017-05-16 14:23:31 +02:00
Kconfig staging: typec: Fairchild FUSB302 Type-c chip driver 2017-04-28 11:29:00 +02:00
Makefile staging: typec: Fairchild FUSB302 Type-c chip driver 2017-04-28 11:29:00 +02:00
TODO staging: typec: Type-C Port Controller Interface driver (tcpci) 2017-04-28 11:29:00 +02:00
pd.h staging: typec: tcpm: Drop duplicate PD messages 2017-05-15 11:23:55 +02:00
pd_bdo.h
pd_vdo.h staging: typec: tcpm: Respond to Discover Identity commands 2017-05-15 11:23:56 +02:00
tcpci.c staging: typec: tcpci: declare private structure as static 2017-05-15 11:23:55 +02:00
tcpci.h staging: typec: Type-C Port Controller Interface driver (tcpci) 2017-04-28 11:29:00 +02:00
tcpm.c staging: typec: tcpm: Fix Port Power Role field in PS_RDY messages 2017-05-15 11:23:56 +02:00
tcpm.h staging: typec: tcpm: Respond to Discover Identity commands 2017-05-15 11:23:56 +02:00