Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions drivers/hid/dockchannel-hid/dockchannel-hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,6 @@ static int dchid_reset_interface(struct dchid_iface *iface, int state)
{
u8 msg[DCHID_PM1_CMD_SIZE];
u8 msg2[DCHID_PM2_CMD_SIZE];
bool afe = iface->dchid->afe_smc && iface->index == 1;
int ret;

if (!iface->dchid->use_ring) {
Expand All @@ -472,7 +471,7 @@ static int dchid_reset_interface(struct dchid_iface *iface, int state)
return ret;

#if IS_REACHABLE(CONFIG_MFD_MACSMC)
if (afe) {
if (iface->dchid->afe_smc && iface->index == 1) {
/*
* J616s macOS power sequence: gp1c high + 50 ms when turning
* off, low with no added delay when turning on. These are
Expand Down