Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357167
b: refs/heads/master
c: fab0e8f
h: refs/heads/master
i:
  357165: 4bb3aa1
  357163: 53e78a8
  357159: b393b3d
  357151: 8f299f2
v: v3
  • Loading branch information
Scott Jiang authored and Mauro Carvalho Chehab committed Dec 26, 2012
1 parent f5b3a7f commit fe6e7a5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fe0e990b22c24d53793c8cf246f0e535f31a4406
refs/heads/master: fab0e8fa432e42d7b5c91a3d4c8af053f291a65a
6 changes: 5 additions & 1 deletion trunk/drivers/media/platform/blackfin/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ config VIDEO_BLACKFIN_CAPTURE
tristate "Blackfin Video Capture Driver"
depends on VIDEO_V4L2 && BLACKFIN && I2C
select VIDEOBUF2_DMA_CONTIG
select VIDEO_BLACKFIN_PPI
help
V4L2 bridge driver for Blackfin video capture device.
Choose PPI or EPPI as its interface.

To compile this driver as a module, choose M here: the
module will be called bfin_video_capture.
module will be called bfin_capture.

config VIDEO_BLACKFIN_PPI
tristate
4 changes: 2 additions & 2 deletions trunk/drivers/media/platform/blackfin/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bfin_video_capture-objs := bfin_capture.o ppi.o
obj-$(CONFIG_VIDEO_BLACKFIN_CAPTURE) += bfin_video_capture.o
obj-$(CONFIG_VIDEO_BLACKFIN_CAPTURE) += bfin_capture.o
obj-$(CONFIG_VIDEO_BLACKFIN_PPI) += ppi.o
7 changes: 7 additions & 0 deletions trunk/drivers/media/platform/blackfin/ppi.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#include <linux/module.h>
#include <linux/slab.h>

#include <asm/bfin_ppi.h>
Expand Down Expand Up @@ -263,9 +264,15 @@ struct ppi_if *ppi_create_instance(const struct ppi_info *info)
pr_info("ppi probe success\n");
return ppi;
}
EXPORT_SYMBOL(ppi_create_instance);

void ppi_delete_instance(struct ppi_if *ppi)
{
peripheral_free_list(ppi->info->pin_req);
kfree(ppi);
}
EXPORT_SYMBOL(ppi_delete_instance);

MODULE_DESCRIPTION("Analog Devices PPI driver");
MODULE_AUTHOR("Scott Jiang <Scott.Jiang.Linux@gmail.com>");
MODULE_LICENSE("GPL v2");

0 comments on commit fe6e7a5

Please sign in to comment.