mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 10:44:14 +08:00
HID: rmi: Protect PM-only functions by #ifdef CONFIG_PM
If CONFIG_PM=n: drivers/hid/hid-rmi.c:432: warning: ‘rmi_post_reset’ defined but not used drivers/hid/hid-rmi.c:437: warning: ‘rmi_post_resume’ defined but not used Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
4732aee97b
commit
a278e26830
@ -428,6 +428,7 @@ static int rmi_raw_event(struct hid_device *hdev,
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
static int rmi_post_reset(struct hid_device *hdev)
|
||||
{
|
||||
return rmi_set_mode(hdev, RMI_MODE_ATTN_REPORTS);
|
||||
@ -437,6 +438,7 @@ static int rmi_post_resume(struct hid_device *hdev)
|
||||
{
|
||||
return rmi_set_mode(hdev, RMI_MODE_ATTN_REPORTS);
|
||||
}
|
||||
#endif /* CONFIG_PM */
|
||||
|
||||
#define RMI4_MAX_PAGE 0xff
|
||||
#define RMI4_PAGE_SIZE 0x0100
|
||||
|
Loading…
Reference in New Issue
Block a user