platform/x86: surface3_power: Prefix POLL_INTERVAL with SURFACE_3
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 27 Mar 2020 10:48:47 +0000 (12:48 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 28 Mar 2020 20:37:29 +0000 (22:37 +0200)
For better namespace maintenance prefix POLL_INTERVAL macro with SURFACE_3.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/surface3_power.c

index 4229e64a84e89b3fe45fe04b556f555c164a1d25..f6c646f5af93073a9bf1f52f82730e2be6c8abb7 100644 (file)
@@ -40,8 +40,8 @@
 #include <linux/uuid.h>
 #include <asm/unaligned.h>
 
-#define POLL_INTERVAL          (2 * HZ)
-#define SURFACE_3_STRLEN 10
+#define SURFACE_3_POLL_INTERVAL                (2 * HZ)
+#define SURFACE_3_STRLEN               10
 
 struct mshw0011_data {
        struct i2c_client       *adp1;
@@ -350,7 +350,7 @@ static int mshw0011_poll_task(void *data)
        set_freezable();
 
        while (!kthread_should_stop()) {
-               schedule_timeout_interruptible(POLL_INTERVAL);
+               schedule_timeout_interruptible(SURFACE_3_POLL_INTERVAL);
                try_to_freeze();
                ret = mshw0011_isr(data);
                if (ret)