2023-01-24 19:58:35

by Tom Rix

[permalink] [raw]
Subject: [PATCH] iio: imu: fix spdx format

checkpatch reports
WARNING: Missing or malformed SPDX-License-Identifier tag in line 1
FILE: drivers/iio/imu/bno055/bno055_ser_trace.c:1:
+//SPDX-License-Identifier: GPL-2.0

Add a space

Fixes: 2eef5a9cc643 ("iio: imu: add BNO055 serdev driver")
Signed-off-by: Tom Rix <[email protected]>
---
drivers/iio/imu/bno055/bno055_ser_trace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/imu/bno055/bno055_ser_trace.c b/drivers/iio/imu/bno055/bno055_ser_trace.c
index 48397b66daef..ab564186d19c 100644
--- a/drivers/iio/imu/bno055/bno055_ser_trace.c
+++ b/drivers/iio/imu/bno055/bno055_ser_trace.c
@@ -1,4 +1,4 @@
-//SPDX-License-Identifier: GPL-2.0
+// SPDX-License-Identifier: GPL-2.0

/*
* bno055_ser Trace Support
--
2.26.3



2023-01-28 16:09:58

by Jonathan Cameron

[permalink] [raw]
Subject: Re: [PATCH] iio: imu: fix spdx format

On Tue, 24 Jan 2023 11:43:01 -0800
Tom Rix <[email protected]> wrote:

> checkpatch reports
> WARNING: Missing or malformed SPDX-License-Identifier tag in line 1
> FILE: drivers/iio/imu/bno055/bno055_ser_trace.c:1:
> +//SPDX-License-Identifier: GPL-2.0
>
> Add a space
>
> Fixes: 2eef5a9cc643 ("iio: imu: add BNO055 serdev driver")
> Signed-off-by: Tom Rix <[email protected]>
Applied to the togreg branch of iio.git and pushed out as testing
so other patches in my queue get tested (not going to find anything in this one!)

> ---
> drivers/iio/imu/bno055/bno055_ser_trace.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/imu/bno055/bno055_ser_trace.c b/drivers/iio/imu/bno055/bno055_ser_trace.c
> index 48397b66daef..ab564186d19c 100644
> --- a/drivers/iio/imu/bno055/bno055_ser_trace.c
> +++ b/drivers/iio/imu/bno055/bno055_ser_trace.c
> @@ -1,4 +1,4 @@
> -//SPDX-License-Identifier: GPL-2.0
> +// SPDX-License-Identifier: GPL-2.0
>
> /*
> * bno055_ser Trace Support