Re: [PATCH] HID: intel-ish-hid: Remove unneeded linux/miscdevice.h include
From: Srinivas Pandruvada
Date: Thu Dec 15 2016 - 11:20:50 EST
On Thu, 2016-12-15 at 16:27 +0100, Corentin Labbe wrote:
> hid/intel-ish-hid does not use any miscdevice so this patch remove
> this unnecessary inclusion.
>
> Signed-off-by: Corentin Labbe <clabbe.montjoie@xxxxxxxxx>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@xxxxxxxxxxxxxxx>
> ---
> Âdrivers/hid/intel-ish-hid/ipc/pci-ish.c | 1 -
> Âdrivers/hid/intel-ish-hid/ishtp/hbm.cÂÂÂ| 1 -
> Âdrivers/hid/intel-ish-hid/ishtp/init.cÂÂ| 1 -
> Â3 files changed, 3 deletions(-)
>
> diff --git a/drivers/hid/intel-ish-hid/ipc/pci-ish.c
> b/drivers/hid/intel-ish-hid/ipc/pci-ish.c
> index 20d647d..d20da39 100644
> --- a/drivers/hid/intel-ish-hid/ipc/pci-ish.c
> +++ b/drivers/hid/intel-ish-hid/ipc/pci-ish.c
> @@ -24,7 +24,6 @@
> Â#include <linux/sched.h>
> Â#include <linux/interrupt.h>
> Â#include <linux/workqueue.h>
> -#include <linux/miscdevice.h>
> Â#define CREATE_TRACE_POINTS
> Â#include <trace/events/intel_ish.h>
> Â#include "ishtp-dev.h"
> diff --git a/drivers/hid/intel-ish-hid/ishtp/hbm.c
> b/drivers/hid/intel-ish-hid/ishtp/hbm.c
> index 59460b6..b721360 100644
> --- a/drivers/hid/intel-ish-hid/ishtp/hbm.c
> +++ b/drivers/hid/intel-ish-hid/ishtp/hbm.c
> @@ -19,7 +19,6 @@
> Â#include <linux/sched.h>
> Â#include <linux/wait.h>
> Â#include <linux/spinlock.h>
> -#include <linux/miscdevice.h>
> Â#include "ishtp-dev.h"
> Â#include "hbm.h"
> Â#include "client.h"
> diff --git a/drivers/hid/intel-ish-hid/ishtp/init.c
> b/drivers/hid/intel-ish-hid/ishtp/init.c
> index ac36441..d27e035 100644
> --- a/drivers/hid/intel-ish-hid/ishtp/init.c
> +++ b/drivers/hid/intel-ish-hid/ishtp/init.c
> @@ -16,7 +16,6 @@
> Â#include <linux/export.h>
> Â#include <linux/slab.h>
> Â#include <linux/sched.h>
> -#include <linux/miscdevice.h>
> Â#include "ishtp-dev.h"
> Â#include "hbm.h"
> Â#include "client.h"