From: Pavel Machek <pavel@suse.cz>
To: Lennart Poettering <mzxreary@0pointer.de>
Cc: len.brown@intel.com, linux-kernel@vger.kernel.org,
linux-acpi@vger.kernel.org
Subject: Re: [PATCH,RFC]: acpi,backlight: MSI S270 - driver, second try
Date: Thu, 17 Aug 2006 15:21:02 +0000 [thread overview]
Message-ID: <20060817152101.GD5950@ucw.cz> (raw)
In-Reply-To: <20060810162329.GA11603@curacao>
Hi!
> - Remove /proc/acpi/s270 interface, replace it by a platform device
> /sys/devices/platform/s270pf/. This means: no procfs is touched
> anymore, all features are now accessible through /sys/.
>
> This patch applies to 2.6.17 and requires the ACPI ec_transaction()
> patch I posted earlier:
>
> http://marc.theaimsgroup.com/?l=linux-acpi&m=115517193511970&w=2
>
> Please comment and/or apply!
Looks ok to me...
> +static int auto_brightness;
> +module_param(auto_brightness, int, 0);
> +MODULE_PARM_DESC(auto_brightness, "Enable automatic brightness control (0: disabled; 1: enabled; 2: don't touch)");
> +
> +/*** Hardware access ***/
> +
> +static const uint8_t lcd_table[MSI_LCD_LEVEL_MAX] = {
> + 0x00, 0x1f, 0x3e, 0x5d, 0x7c, 0x9b, 0xba, 0xd9, 0xf8
> +};
Can we get 0xf8 levels and simplify code while we are at it?
> + if ((result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, &wdata, 1, &rdata, 1)) < 0)
> + return result;
Please split this into two lines.
result = ...;
if (result.....)
> +static DEVICE_ATTR(bluetooth, 0444, show_bluetooth, NULL);
> +static DEVICE_ATTR(wlan, 0444, show_wlan, NULL);
So bluetooth and wlan basically mirror physical switch state? Should
we make these switches available through input subsystem one day?
--
Thanks for all the (sleeping) penguins.
next prev parent reply other threads:[~2006-08-17 15:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-10 16:23 [PATCH,RFC]: acpi,backlight: MSI S270 - driver, second try Lennart Poettering
2006-08-17 15:21 ` Pavel Machek [this message]
2006-08-17 16:03 ` Lennart Poettering
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=20060817152101.GD5950@ucw.cz \
--to=pavel@suse.cz \
--cc=len.brown@intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mzxreary@0pointer.de \
/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