mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
usb: misc: nb7vpq904m: remove panic operation
it is an empty function. Change-Id: I6b34ea0280f30169e93c819d037c323dcf1f8bee Signed-off-by: Linyu Yuan <linyyuan@codeaurora.org>
This commit is contained in:
parent
febeb7a60c
commit
a95ce1f890
1 changed files with 0 additions and 18 deletions
|
|
@ -101,7 +101,6 @@ struct ssusb_redriver {
|
|||
enum plug_orientation typec_orientation;
|
||||
enum operation_mode op_mode;
|
||||
|
||||
struct notifier_block panic_nb;
|
||||
struct notifier_block ucsi_nb;
|
||||
|
||||
enum channel_mode chan_mode[CHANNEL_NUM];
|
||||
|
|
@ -551,17 +550,6 @@ static void ssusb_redriver_orientation_gpio_init(
|
|||
redriver->orientation_gpio_enable = true;
|
||||
}
|
||||
|
||||
static int ssusb_redriver_panic_notifier(struct notifier_block *this,
|
||||
unsigned long event, void *ptr)
|
||||
{
|
||||
struct ssusb_redriver *redriver = container_of(this,
|
||||
struct ssusb_redriver, panic_nb);
|
||||
|
||||
pr_err("%s: op mode: %d\n", __func__, redriver->op_mode);
|
||||
|
||||
return NOTIFY_OK;
|
||||
}
|
||||
|
||||
static const struct regmap_config redriver_regmap = {
|
||||
.max_register = REDRIVER_REG_MAX,
|
||||
.reg_bits = 8,
|
||||
|
|
@ -602,10 +590,6 @@ static int redriver_i2c_probe(struct i2c_client *client,
|
|||
|
||||
ssusb_redriver_orientation_gpio_init(redriver);
|
||||
|
||||
redriver->panic_nb.notifier_call = ssusb_redriver_panic_notifier;
|
||||
atomic_notifier_chain_register(&panic_notifier_list,
|
||||
&redriver->panic_nb);
|
||||
|
||||
redriver->ucsi_nb.notifier_call = ssusb_redriver_ucsi_notifier;
|
||||
register_ucsi_glink_notifier(&redriver->ucsi_nb);
|
||||
|
||||
|
|
@ -620,8 +604,6 @@ static int redriver_i2c_remove(struct i2c_client *client)
|
|||
|
||||
debugfs_remove(redriver->debug_root);
|
||||
unregister_ucsi_glink_notifier(&redriver->ucsi_nb);
|
||||
atomic_notifier_chain_unregister(&panic_notifier_list,
|
||||
&redriver->panic_nb);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue