From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Scott Jiang <scott.jiang.linux@gmail.com>
Cc: Hans Verkuil <hans.verkuil@cisco.com>,
<linux-media@vger.kernel.org>,
<uclinux-dist-devel@blackfin.uclinux.org>
Subject: Re: [PATCH 1/2] v4l2: blackfin: convert ppi driver to a module
Date: Wed, 26 Dec 2012 10:31:09 -0200 [thread overview]
Message-ID: <20121226103109.576e70d3@redhat.com> (raw)
In-Reply-To: <1353440976-1112-1-git-send-email-scott.jiang.linux@gmail.com>
Hi Scott,
Em Tue, 20 Nov 2012 14:49:35 -0500
Scott Jiang <scott.jiang.linux@gmail.com> escreveu:
Coul you please send us a patch adding you at MAINTAINERS for this driver?
Thanks!
Mauro
> Other drivers can make use of it.
>
> Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com>
> ---
> drivers/media/platform/blackfin/Kconfig | 6 +++++-
> drivers/media/platform/blackfin/Makefile | 4 ++--
> drivers/media/platform/blackfin/ppi.c | 7 +++++++
> 3 files changed, 14 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/media/platform/blackfin/Kconfig b/drivers/media/platform/blackfin/Kconfig
> index ecd5323..519990e 100644
> --- a/drivers/media/platform/blackfin/Kconfig
> +++ b/drivers/media/platform/blackfin/Kconfig
> @@ -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
> diff --git a/drivers/media/platform/blackfin/Makefile b/drivers/media/platform/blackfin/Makefile
> index aa3a0a2..30421bc 100644
> --- a/drivers/media/platform/blackfin/Makefile
> +++ b/drivers/media/platform/blackfin/Makefile
> @@ -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
> diff --git a/drivers/media/platform/blackfin/ppi.c b/drivers/media/platform/blackfin/ppi.c
> index d295921..9374d67 100644
> --- a/drivers/media/platform/blackfin/ppi.c
> +++ b/drivers/media/platform/blackfin/ppi.c
> @@ -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>
> @@ -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");
--
Cheers,
Mauro
prev parent reply other threads:[~2012-12-26 12:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-20 19:49 [PATCH 1/2] v4l2: blackfin: convert ppi driver to a module Scott Jiang
2012-11-20 19:49 ` [PATCH 2/2] v4l2: blackfin: add EPPI3 support Scott Jiang
2012-12-26 12:31 ` Mauro Carvalho Chehab [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121226103109.576e70d3@redhat.com \
--to=mchehab@redhat.com \
--cc=hans.verkuil@cisco.com \
--cc=linux-media@vger.kernel.org \
--cc=scott.jiang.linux@gmail.com \
--cc=uclinux-dist-devel@blackfin.uclinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).