Skip to contentSkip to conversation

staging: media: remove duplicate line

PATCH In review [email protected] 2 participants 2 messages Mar 27, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 staging: media: remove duplicate line

From: Rajeshwar R Shinde <[email protected]>

The kernel configuration VIDEO_DEV is defined twice in Kconfig. Thus, the redundant code is removed.

---
v1->v2
changed the commit message
v2->v3
changed the subject

---
 drivers/staging/media/imx/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/media/imx/Kconfig +0 -1
index 21fd79515042..772f49b1fe52 100644
@@ -4,7 +4,6 @@ config VIDEO_IMX_MEDIA
 	depends on ARCH_MXC || COMPILE_TEST
 	depends on HAS_DMA
 	depends on VIDEO_DEV
-	depends on VIDEO_DEV
 	select MEDIA_CONTROLLER
 	select V4L2_FWNODE
 	select V4L2_MEM2MEM_DEV
Signature · 1 line
2.25.1
#1 lore raw

Hey Rajeshwar,

Quoted 5 lines · On 27.03.2024 08:03, [email protected] wrote:

From: Rajeshwar R Shinde <[email protected]>

The kernel configuration VIDEO_DEV is defined twice in Kconfig. Thus, the redundant code is removed.

Quoted 7 lines

---
v1->v2
changed the commit message
v2->v3
changed the subject

The subject line isn't any better than before. Lets look at some accepted examples together:

24d9cb143013 media: staging: imx: controls are from another device, mark this 67673ed55084 media: staging/imx: rearrange group id to take in account IPU 483fe862488f9 staging: media: imx: Merge VIDEO_IMX_CSI into VIDEO_IMX_MEDIA 9958d30f38b96 media: Kconfig: cleanup VIDEO_DEV dependencies

How did I find these? Simply by running git blame on one or more of the files in the driver at drivers/staging/media/imx

As you can see there are slight variations on the first three but the general theme is the same, the subject line describes to you that the driver is found in staging/media and it tells you that the folder of the driver is 'imx'. Generally, staging: media: imx would be preferred however.
The 4th case shows you an example with a more general subject line and it is justified in this case as the patch does changes on multiple files on the whole subsystem (the media subsystem consists of all files found in drivers/media, drivers/staging/media, Documentation/admin-guide/media and a few header files).

Now if we take this into account for your subject line. You only change a single driver, thus you need staging: media: imx:, and you to make your subject a bit less ambigious you could call the whole thing:

staging: media: imx: Remove duplicate Kconfig dependency

I hope this helps.

Greetings,
Sebastian

Quoted 21 lines

---
drivers/staging/media/imx/Kconfig | 1 -

1 file changed, 1 deletion(-)
drivers/staging/media/imx/Kconfig +0 -1
index 21fd79515042..772f49b1fe52 100644
@@ -4,7 +4,6 @@ config VIDEO_IMX_MEDIA
 	depends on ARCH_MXC || COMPILE_TEST
 	depends on HAS_DMA
 	depends on VIDEO_DEV
-	depends on VIDEO_DEV
 	select MEDIA_CONTROLLER
 	select V4L2_FWNODE
 	select V4L2_MEM2MEM_DEV
Signature · 1 line
2.25.1