summaryrefslogtreecommitdiff
path: root/drivers/misc/lis3lv02d/lis3lv02d.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-08-23 12:32:21 +0300
committerHans de Goede <hdegoede@redhat.com>2021-08-26 16:09:18 +0300
commit34570a898eef01b5311bfc9c448877eb717d3285 (patch)
tree76f8e9550ab878b574a369bbd6d13805ce6d6933 /drivers/misc/lis3lv02d/lis3lv02d.h
parent0c59e612c0b6b94a0f1c5ccf7f4a4418dab77d97 (diff)
downloadlinux-34570a898eef01b5311bfc9c448877eb717d3285.tar.xz
platform/x86: hp_accel: Remove _INI method call
According to ACPI specification the _INI method must be called when device is enumerated first time. After that there is no need to repeat the procedure. Convert the lis3lv02d_acpi_init() to be a stub (Note, we may not remove it because it is called unconditionally by the accelerometer main driver). Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Tested-by: Kai-Heng Feng <kai.heng.feng@canonical.com> Link: https://lore.kernel.org/r/20210823093222.19544-2-andriy.shevchenko@linux.intel.com Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/misc/lis3lv02d/lis3lv02d.h')
-rw-r--r--drivers/misc/lis3lv02d/lis3lv02d.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/misc/lis3lv02d/lis3lv02d.h b/drivers/misc/lis3lv02d/lis3lv02d.h
index 7ac788fae1b8..c394c0b08519 100644
--- a/drivers/misc/lis3lv02d/lis3lv02d.h
+++ b/drivers/misc/lis3lv02d/lis3lv02d.h
@@ -271,7 +271,6 @@ struct lis3lv02d {
int regs_size;
u8 *reg_cache;
bool regs_stored;
- bool init_required;
u8 odr_mask; /* ODR bit mask */
u8 whoami; /* indicates measurement precision */
s16 (*read_data) (struct lis3lv02d *lis3, int reg);