aboutsummaryrefslogtreecommitdiff
path: root/drivers/hid
diff options
context:
space:
mode:
authorGravatar Kenny Levinsen <kl@kl.wtf> 2024-05-07 08:36:56 +0200
committerGravatar Jiri Kosina <jkosina@suse.com> 2024-05-07 10:43:10 +0200
commitd2b34fa81445193532e7012106f60426de3b3718 (patch)
treebcf30e77f66c42b962116f2e1e65555667684983 /drivers/hid
parentHID: i2c-hid: Use address probe to wake on resume (diff)
downloadlinux-d2b34fa81445193532e7012106f60426de3b3718.tar.gz
linux-d2b34fa81445193532e7012106f60426de3b3718.tar.bz2
linux-d2b34fa81445193532e7012106f60426de3b3718.zip
HID: i2c-hid: Remove unused label in i2c_hid_set_power
This label was left behind when the wake-up logic was moved from i2c_hid_set_power to i2c_hid_probe_address. Clean it up as it causes warnings-as-errors builds to fail. Fixes: bb1033c8a3ea ("HID: i2c-hid: Use address probe to wake on resume") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Kenny Levinsen <kl@kl.wtf> Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/i2c-hid/i2c-hid-core.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/hid/i2c-hid/i2c-hid-core.c b/drivers/hid/i2c-hid/i2c-hid-core.c
index 13666c27b02e..aa460f67c7b5 100644
--- a/drivers/hid/i2c-hid/i2c-hid-core.c
+++ b/drivers/hid/i2c-hid/i2c-hid-core.c
@@ -413,8 +413,6 @@ static int i2c_hid_set_power(struct i2c_hid *ihid, int power_state)
dev_err(&ihid->client->dev,
"failed to change power setting.\n");
-set_pwr_exit:
-
/*
* The HID over I2C specification states that if a DEVICE needs time
* after the PWR_ON request, it should utilise CLOCK stretching.