diff mbox series

media: qcom: remove duplicated include file

Message ID 1537419595-29990-1-git-send-email-zhongjiang@huawei.com (mailing list archive)
State New, archived
Headers show
Series media: qcom: remove duplicated include file | expand

Commit Message

zhong jiang Sept. 20, 2018, 4:59 a.m. UTC
device.h have duplicated include. hence just remove
redundant include file.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
---
 drivers/media/platform/qcom/camss/camss.h | 1 -
 1 file changed, 1 deletion(-)

Comments

Todor Tomov Sept. 20, 2018, 5:55 a.m. UTC | #1
Thank you for spotting that!

On 19.09.2018 21:59, zhong jiang wrote:
> device.h have duplicated include. hence just remove
> redundant include file.

I think it will be better to remove the second occurrence because
it will keep the alphabetical order of the includes.

Best regards,
Todor Tomov

> 
> Signed-off-by: zhong jiang <zhongjiang@huawei.com>
> ---
>  drivers/media/platform/qcom/camss/camss.h | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/media/platform/qcom/camss/camss.h b/drivers/media/platform/qcom/camss/camss.h
> index 418996d..0823a71 100644
> --- a/drivers/media/platform/qcom/camss/camss.h
> +++ b/drivers/media/platform/qcom/camss/camss.h
> @@ -10,7 +10,6 @@
>  #ifndef QC_MSM_CAMSS_H
>  #define QC_MSM_CAMSS_H
>  
> -#include <linux/device.h>
>  #include <linux/types.h>
>  #include <media/v4l2-async.h>
>  #include <media/v4l2-device.h>
>
zhong jiang Sept. 21, 2018, 3:36 a.m. UTC | #2
On 2018/9/20 13:55, Todor Tomov wrote:
> Thank you for spotting that!
>
> On 19.09.2018 21:59, zhong jiang wrote:
>> device.h have duplicated include. hence just remove
>> redundant include file.
> I think it will be better to remove the second occurrence because
> it will keep the alphabetical order of the includes.
Yep,  I forget the point.  Will change in v2.

Thanks,
zhong jiang
> Best regards,
> Todor Tomov
>
>> Signed-off-by: zhong jiang <zhongjiang@huawei.com>
>> ---
>>  drivers/media/platform/qcom/camss/camss.h | 1 -
>>  1 file changed, 1 deletion(-)
>>
>> diff --git a/drivers/media/platform/qcom/camss/camss.h b/drivers/media/platform/qcom/camss/camss.h
>> index 418996d..0823a71 100644
>> --- a/drivers/media/platform/qcom/camss/camss.h
>> +++ b/drivers/media/platform/qcom/camss/camss.h
>> @@ -10,7 +10,6 @@
>>  #ifndef QC_MSM_CAMSS_H
>>  #define QC_MSM_CAMSS_H
>>  
>> -#include <linux/device.h>
>>  #include <linux/types.h>
>>  #include <media/v4l2-async.h>
>>  #include <media/v4l2-device.h>
>>
>
>
diff mbox series

Patch

diff --git a/drivers/media/platform/qcom/camss/camss.h b/drivers/media/platform/qcom/camss/camss.h
index 418996d..0823a71 100644
--- a/drivers/media/platform/qcom/camss/camss.h
+++ b/drivers/media/platform/qcom/camss/camss.h
@@ -10,7 +10,6 @@ 
 #ifndef QC_MSM_CAMSS_H
 #define QC_MSM_CAMSS_H
 
-#include <linux/device.h>
 #include <linux/types.h>
 #include <media/v4l2-async.h>
 #include <media/v4l2-device.h>