media: switch from 'pci_' to 'dma_' APIThe wrappers in include/linux/pci-dma-compat.h should go away.The patch has been generated with the coccinelle script below.It has been compile tested.@
media: switch from 'pci_' to 'dma_' APIThe wrappers in include/linux/pci-dma-compat.h should go away.The patch has been generated with the coccinelle script below.It has been compile tested.@@@@- PCI_DMA_BIDIRECTIONAL+ DMA_BIDIRECTIONAL@@@@- PCI_DMA_TODEVICE+ DMA_TO_DEVICE@@@@- PCI_DMA_FROMDEVICE+ DMA_FROM_DEVICE@@@@- PCI_DMA_NONE+ DMA_NONE@@expression e1, e2, e3;@@- pci_alloc_consistent(e1, e2, e3)+ dma_alloc_coherent(&e1->dev, e2, e3, GFP_)@@expression e1, e2, e3;@@- pci_zalloc_consistent(e1, e2, e3)+ dma_alloc_coherent(&e1->dev, e2, e3, GFP_)@@expression e1, e2, e3, e4;@@- pci_free_consistent(e1, e2, e3, e4)+ dma_free_coherent(&e1->dev, e2, e3, e4)@@expression e1, e2, e3, e4;@@- pci_map_single(e1, e2, e3, e4)+ dma_map_single(&e1->dev, e2, e3, e4)@@expression e1, e2, e3, e4;@@- pci_unmap_single(e1, e2, e3, e4)+ dma_unmap_single(&e1->dev, e2, e3, e4)@@expression e1, e2, e3, e4, e5;@@- pci_map_page(e1, e2, e3, e4, e5)+ dma_map_page(&e1->dev, e2, e3, e4, e5)@@expression e1, e2, e3, e4;@@- pci_unmap_page(e1, e2, e3, e4)+ dma_unmap_page(&e1->dev, e2, e3, e4)@@expression e1, e2, e3, e4;@@- pci_map_sg(e1, e2, e3, e4)+ dma_map_sg(&e1->dev, e2, e3, e4)@@expression e1, e2, e3, e4;@@- pci_unmap_sg(e1, e2, e3, e4)+ dma_unmap_sg(&e1->dev, e2, e3, e4)@@expression e1, e2, e3, e4;@@- pci_dma_sync_single_for_cpu(e1, e2, e3, e4)+ dma_sync_single_for_cpu(&e1->dev, e2, e3, e4)@@expression e1, e2, e3, e4;@@- pci_dma_sync_single_for_device(e1, e2, e3, e4)+ dma_sync_single_for_device(&e1->dev, e2, e3, e4)@@expression e1, e2, e3, e4;@@- pci_dma_sync_sg_for_cpu(e1, e2, e3, e4)+ dma_sync_sg_for_cpu(&e1->dev, e2, e3, e4)@@expression e1, e2, e3, e4;@@- pci_dma_sync_sg_for_device(e1, e2, e3, e4)+ dma_sync_sg_for_device(&e1->dev, e2, e3, e4)@@expression e1, e2;@@- pci_dma_mapping_error(e1, e2)+ dma_mapping_error(&e1->dev, e2)@@expression e1, e2;@@- pci_set_dma_mask(e1, e2)+ dma_set_mask(&e1->dev, e2)@@expression e1, e2;@@- pci_set_consistent_dma_mask(e1, e2)+ dma_set_coherent_mask(&e1->dev, e2)Signed-off-by: Christophe JAILLET <[email protected]>Reviewed-by: Sakari Ailus <[email protected]>Tested-by: Akihiro Tsukada <[email protected]>Signed-off-by: Hans Verkuil <[email protected]>Signed-off-by: Mauro Carvalho Chehab <[email protected]>
show more ...
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157Based on 3 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of th
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157Based on 3 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version [author] [kishon] [vijay] [abraham] [i] [kishon]@[ti] [com] this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version [author] [graeme] [gregory] [gg]@[slimlogic] [co] [uk] [author] [kishon] [vijay] [abraham] [i] [kishon]@[ti] [com] [based] [on] [twl6030]_[usb] [c] [author] [hema] [hk] [hemahk]@[ti] [com] this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more detailsextracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-laterhas been chosen to replace the boilerplate/reference in 1105 file(s).Signed-off-by: Thomas Gleixner <[email protected]>Reviewed-by: Allison Randal <[email protected]>Reviewed-by: Richard Fontana <[email protected]>Reviewed-by: Kate Stewart <[email protected]>Cc: [email protected]Link: https://lkml.kernel.org/r/[email protected]Signed-off-by: Greg Kroah-Hartman <[email protected]>
treewide: Add SPDX license identifier - Makefile/KconfigAdd SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any formThese files fall under the project
treewide: Add SPDX license identifier - Makefile/KconfigAdd SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any formThese files fall under the project license, GPL v2 only. The resulting SPDXlicense identifier is: GPL-2.0-onlySigned-off-by: Thomas Gleixner <[email protected]>Signed-off-by: Greg Kroah-Hartman <[email protected]>
media: prefix header search paths with $(srctree)/Currently, the Kbuild core manipulates header search paths in a crazyway [1].To fix this mess, I want all Makefiles to add explicit $(srctree)/
media: prefix header search paths with $(srctree)/Currently, the Kbuild core manipulates header search paths in a crazyway [1].To fix this mess, I want all Makefiles to add explicit $(srctree)/ tothe search paths in the srctree. Some Makefiles are already written inthat way, but not all. The goal of this work is to make the notationconsistent, and finally get rid of the gross hacks.Having whitespaces after -I does not matter since commit 48f6e3cf5bc6("kbuild: do not drop -I without parameter").[1]: https://patchwork.kernel.org/patch/9632347/Signed-off-by: Masahiro Yamada <[email protected]>Reviewed-by: Sakari Ailus <[email protected]>
media: replace strcpy() by strscpy()The strcpy() function is being deprecated upstream. Replaceit by the safer strscpy().Signed-off-by: Mauro Carvalho Chehab <[email protected]>Reviewe
media: replace strcpy() by strscpy()The strcpy() function is being deprecated upstream. Replaceit by the safer strscpy().Signed-off-by: Mauro Carvalho Chehab <[email protected]>Reviewed-by: Hans Verkuil <[email protected]>Signed-off-by: Mauro Carvalho Chehab <[email protected]>
media: fix usage of whitespaces and on indentationOn several places, whitespaces are being used for indentation,or even at the end of the line.Fix them.Signed-off-by: Mauro Carvalho Chehab <mc
media: fix usage of whitespaces and on indentationOn several places, whitespaces are being used for indentation,or even at the end of the line.Fix them.Signed-off-by: Mauro Carvalho Chehab <[email protected]>
media: move dvb kAPI headers to include/mediaExcept for DVB, all media kAPI headers are at include/media.Move the headers to it.Signed-off-by: Mauro Carvalho Chehab <[email protected]>
media: pluto2: constify pci_device_idpci_device_id are not supposed to change at runtime. All functionsworking with pci_device_id provided by <linux/pci.h> work withconst pci_device_id. So mark t
media: pluto2: constify pci_device_idpci_device_id are not supposed to change at runtime. All functionsworking with pci_device_id provided by <linux/pci.h> work withconst pci_device_id. So mark the non-const structs as const.Signed-off-by: Arvind Yadav <[email protected]>Signed-off-by: Hans Verkuil <[email protected]>Signed-off-by: Mauro Carvalho Chehab <[email protected]>
[media] media: Drop FSF's postal address from the source code filesDrop the FSF's postal address from the source code files that typicallycontain mostly the license text. Of the 628 removed instan
[media] media: Drop FSF's postal address from the source code filesDrop the FSF's postal address from the source code files that typicallycontain mostly the license text. Of the 628 removed instances, 578 areoutdated.The patch has been created with the following command without manual edits:git grep -l "675 Mass Ave\|59 Temple Place\|51 Franklin St" -- \ drivers/media/ include/media|while read i; do i=$i perl -e 'open(F,"< $ENV{i}");$a=join("", <F>);$a =~ s/[ \t]*\*\n.*You should.*\n.*along with.*\n.*(\n.*USA.*$)?\n//m && $a =~ s/(^.*)Or, (point your browser to) /$1To obtain the license, $2\n$1/m;close(F);open(F, "> $ENV{i}");print F $a;close(F);'; doneSigned-off-by: Sakari Ailus <[email protected]>
[media] pluto2: use KERN_CONT where neededSome continuation messages are not using KERN_CONT.Since commit 563873318d32 ("Merge branch 'printk-cleanups"),this won't work as expected anymore. So,
[media] pluto2: use KERN_CONT where neededSome continuation messages are not using KERN_CONT.Since commit 563873318d32 ("Merge branch 'printk-cleanups"),this won't work as expected anymore. So, let's add KERN_CONTto those lines.Signed-off-by: Mauro Carvalho Chehab <[email protected]>
[media] media_tree: Fix spelling errorsFix various spelling errors in strings and comments throughout the mediatree. The majority of these were found using Lucas De Marchi's codespelltool.[m.ch
[media] media_tree: Fix spelling errorsFix various spelling errors in strings and comments throughout the mediatree. The majority of these were found using Lucas De Marchi's codespelltool.[[email protected]: discard hunks with conflicts]Signed-off-by: Jonathan McCrohan <[email protected]>Signed-off-by: Hans Verkuil <[email protected]>Signed-off-by: Mauro Carvalho Chehab <[email protected]>
[media] pci: pluto2: Remove redundant pci_set_drvdataDriver core sets driver data to NULL upon failure or remove.Signed-off-by: Sachin Kamat <[email protected]>Signed-off-by: Hans Verkuil
[media] pci: pluto2: Remove redundant pci_set_drvdataDriver core sets driver data to NULL upon failure or remove.Signed-off-by: Sachin Kamat <[email protected]>Signed-off-by: Hans Verkuil <[email protected]>Signed-off-by: Mauro Carvalho Chehab <[email protected]>
[media] drivers/media/pci/pluto2/pluto2: Convert to module_pci_driveruse module_pci_driver instead of init/exit, make code clean.Signed-off-by: Libo Chen <[email protected]>Signed-off-by: Mau
[media] drivers/media/pci/pluto2/pluto2: Convert to module_pci_driveruse module_pci_driver instead of init/exit, make code clean.Signed-off-by: Libo Chen <[email protected]>Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Drivers: media: remove __dev* attributes.CONFIG_HOTPLUG is going away as an option. As a result, the __dev*markings need to be removed.This change removes the use of __devinit, __devexit_p, __d
Drivers: media: remove __dev* attributes.CONFIG_HOTPLUG is going away as an option. As a result, the __dev*markings need to be removed.This change removes the use of __devinit, __devexit_p, __devinitdata,__devinitconst, and __devexit from these drivers.Based on patches originally written by Bill Pemberton, but redone by mein order to handle some of the coding style issues better, by hand.Cc: Bill Pemberton <[email protected]>Cc: Mauro Carvalho Chehab <[email protected]>Signed-off-by: Greg Kroah-Hartman <[email protected]>
[media] Rename media/dvb as media/pciThe remaining dvb drivers are pci, so rename them to match thebus.Signed-off-by: Mauro Carvalho Chehab <[email protected]>