From: Seth Forshee <seth.forshee@canonical.com>
To: Azael Avalos <coproscefalo@gmail.com>
Cc: Matthew Garrett <mjg@redhat.com>, platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH] toshiba_acpi: Add SCI operations and adapt Illumination code
Date: Thu, 3 May 2012 16:50:33 -0500 [thread overview]
Message-ID: <20120503215033.GF23573@thinkpad-t410> (raw)
In-Reply-To: <CAGdLNWGawHgHRCk0h9bVSZkf+v-M44WcqzhT6XaQORSKdu0QVw@mail.gmail.com>
On Thu, May 03, 2012 at 02:46:56PM -0600, Azael Avalos wrote:
> SCI stands for Software Configuration Interface and
> it is supposed to be present on all Toshiba models.
>
> Illumination code is now adapted to use SCI calls and
> is not registered unless the SCI is present.
>
> Signed-off-by: Azael <coproscefalo@gmail.com>
One tiny little style problem, otherwise this looks okay to me.
Also worth noting is that I tested an earlier but nearly identical
version of this patch on an NB505 (no illumination support) and saw no
adverse effects.
> @@ -1099,6 +1127,14 @@ static int __devinit toshiba_acpi_add(struct
> acpi_device *acpi_dev)
> dev->method_hci = hci_method;
> acpi_dev->driver_data = dev;
>
> + /* Open Toshiba SCI, if present */
> + ret = sci_open(dev);
> + if (ret == 0) {
> + pr_info("Toshiba SCI could not be opened.\n");
> + dev->sci_opened = 0;
> + } else
> + dev->sci_opened = 1;
> +
Kernel style dictates that when one branch of a conditional has braces,
all other branches should also have braces.
prev parent reply other threads:[~2012-05-03 21:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-03 20:46 [PATCH] toshiba_acpi: Add SCI operations and adapt Illumination code Azael Avalos
2012-05-03 21:50 ` Seth Forshee [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=20120503215033.GF23573@thinkpad-t410 \
--to=seth.forshee@canonical.com \
--cc=coproscefalo@gmail.com \
--cc=mjg@redhat.com \
--cc=platform-driver-x86@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