From: Mattia Dongili <malattia@linux.it>
To: Adrian Bunk <bunk@stusta.de>
Cc: linux-kernel@vger.kernel.org,
ACPI Devel Mailing List <linux-acpi@vger.kernel.org>,
Len Brown <lenb@kernel.org>
Subject: Re: [2.6 patch] remove sonypi_camera_command()
Date: Sun, 3 Jun 2007 12:55:18 +0900 [thread overview]
Message-ID: <20070603035517.GA4541@inferi.kami.home> (raw)
In-Reply-To: <20070602190942.GM5500@stusta.de>
On Sat, Jun 02, 2007 at 09:09:42PM +0200, Adrian Bunk wrote:
> This patch removes the no longer used sonypi_camera_command().
>
> Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Mattia Dongili <malattia@linux.it>
>
> ---
>
> drivers/char/sonypi.c | 47 -----------------------------------------
> include/linux/sonypi.h | 2 -
> 2 files changed, 49 deletions(-)
>
> --- linux-2.6.22-rc3-mm1/include/linux/sonypi.h.old 2007-06-02 20:35:45.000000000 +0200
> +++ linux-2.6.22-rc3-mm1/include/linux/sonypi.h 2007-06-02 20:35:51.000000000 +0200
> @@ -153,8 +153,6 @@
> #define SONYPI_COMMAND_GETCAMERAROMVERSION 18 /* obsolete */
> #define SONYPI_COMMAND_GETCAMERAREVISION 19 /* obsolete */
>
> -int sonypi_camera_command(int command, u8 value);
> -
> #endif /* __KERNEL__ */
>
> #endif /* _SONYPI_H_ */
> --- linux-2.6.22-rc3-mm1/drivers/char/sonypi.c.old 2007-06-02 20:35:58.000000000 +0200
> +++ linux-2.6.22-rc3-mm1/drivers/char/sonypi.c 2007-06-02 20:36:16.000000000 +0200
> @@ -885,53 +885,6 @@
> return IRQ_HANDLED;
> }
>
> -/* External camera command (exported to the motion eye v4l driver) */
> -int sonypi_camera_command(int command, u8 value)
> -{
> - if (!camera)
> - return -EIO;
> -
> - mutex_lock(&sonypi_device.lock);
> -
> - switch (command) {
> - case SONYPI_COMMAND_SETCAMERA:
> - if (value)
> - sonypi_camera_on();
> - else
> - sonypi_camera_off();
> - break;
> - case SONYPI_COMMAND_SETCAMERABRIGHTNESS:
> - sonypi_set(SONYPI_CAMERA_BRIGHTNESS, value);
> - break;
> - case SONYPI_COMMAND_SETCAMERACONTRAST:
> - sonypi_set(SONYPI_CAMERA_CONTRAST, value);
> - break;
> - case SONYPI_COMMAND_SETCAMERAHUE:
> - sonypi_set(SONYPI_CAMERA_HUE, value);
> - break;
> - case SONYPI_COMMAND_SETCAMERACOLOR:
> - sonypi_set(SONYPI_CAMERA_COLOR, value);
> - break;
> - case SONYPI_COMMAND_SETCAMERASHARPNESS:
> - sonypi_set(SONYPI_CAMERA_SHARPNESS, value);
> - break;
> - case SONYPI_COMMAND_SETCAMERAPICTURE:
> - sonypi_set(SONYPI_CAMERA_PICTURE, value);
> - break;
> - case SONYPI_COMMAND_SETCAMERAAGC:
> - sonypi_set(SONYPI_CAMERA_AGC, value);
> - break;
> - default:
> - printk(KERN_ERR "sonypi: sonypi_camera_command invalid: %d\n",
> - command);
> - break;
> - }
> - mutex_unlock(&sonypi_device.lock);
> - return 0;
> -}
> -
> -EXPORT_SYMBOL(sonypi_camera_command);
> -
> static int sonypi_misc_fasync(int fd, struct file *filp, int on)
> {
> int retval;
>
>
--
mattia
:wq!
prev parent reply other threads:[~2007-06-03 3:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-02 19:09 Adrian Bunk
2007-06-03 3:55 ` Mattia Dongili [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=20070603035517.GA4541@inferi.kami.home \
--to=malattia@linux.it \
--cc=bunk@stusta.de \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®