From: Hiroshi Miura <miura@da-cha.org>
To: Len Brown <len.brown@intel.com>
Cc: linux-kernel@vger.kernel.org,
ACPI Developers <acpi-devel@lists.sourceforge.net>,
letsnote-tech@ml.good-day.co.jp
Subject: Re: [PATCH][ACPI] Panasonic Hotkey Driver
Date: Thu, 19 Aug 2004 12:50:41 +0900 [thread overview]
Message-ID: <87smaj7pm6.wl%miura@da-cha.org> (raw)
In-Reply-To: <1092805474.25902.126.camel@dhcppc4>
Hi,
At 18 Aug 2004 01:04:34 -0400,
Len Brown wrote:
> >
> > The event is for example 'HKEY HKEY 00000080 0000001' for Fn+F1.
>
> Would be good if you had a comment that listed what hot keys are
> available etc.
ok, I will do.
> > # This is a BitKeeper generated diff -Nru style patch.
>
> Since you're using bitkeeper, one option is to preserve your check-in
> comments by sending me the patch via bjorn's bkexport script (attached).
> Though I reserve the right to edit all comments;-)
It's good. I want to try it.
> >
> > +config ACPI_PCC
> > + tristate "Panasonic Laptop Extras"
>
> how about calling it a hot key driver instead of an "extras driver",
> unless there is something other than hot keys coming.
now I implemented controller for lcd brightness in this driver.
I will post it soon.
> > + *
> > + * Jul.17, 2004 Hiroshi Miura <miura@da-cha.org>
> > + * - v0.1 based on acpi video driver
> > + *
>
> would be polite to credit the exact files that you leveraged.
Sorry, I will fix it as another post.
> > +/****************************************************
> > + * Define ACPI PATHs
> > + ****************************************************/
> > +/* crt/lcd hot key definitions */
> > +#define DEVICE_NAME_VGA "\\_SB_.PCI0.GRFX"
> > +#define DEVICE_NAME_CRT "CRT1"
> > +#define DEVICE_NAME_LCD "LCD1"
>
> These three are unused and should be deleted.
> (they should be part of the video driver)
Yes these are part of video driver.
> > +#define METHOD_CHGD "\\_SB_.CHGD"
I will remove it as same as above.
> > +#if 0
> > +static int
> > +write_acpi_int(const char* methodName, int val)
> > +{
> > + struct acpi_object_list params;
> > + union acpi_object in_objs[1];
> > + acpi_status status;
> > +
> > + params.count = sizeof(in_objs)/sizeof(in_objs[0]);
> > + params.pointer = in_objs;
> > + in_objs[0].type = ACPI_TYPE_INTEGER;
> > + in_objs[0].integer.value = val;
> > +
> > + status = acpi_evaluate_object(0, (char*)methodName, ¶ms,
> > 0);
> > + return (status == AE_OK);
> > +}
> > +#endif
>
> hmm, this dead code above looks familiar:-)
>
> we'll want to clean out the #if 0's, or at least
> put them under a descriptive #ifdef, yes?
will remove.
> > +/*
> > + * proc file handlers
> > + */
>
> Of course we're trying to get away from /proc at this point and head for
> sysfs...
Uuum, I must study... will rewrite.
> > +/* device(HKEY) definitions */
> > +#define HKEY_HID "MAT0019"
>
> I'm extremely pleased to see this keys off a HID.
> > +/* init funcs. */
> > +static int __init
> > +acpi_pcc_init(void)
> > +{
> > + acpi_status result = AE_OK;
> > +
> > + if (acpi_disabled)
> > + return -ENODEV;
> > +
> > + /* simple device detection: look forI method */
> > + if (!(is_valid_acpi_path(METHOD_CHGD)))
> > + return -ENODEV;
>
> Why is this necessary if you key off the HID with
> acpi_bus_register_driver below?
It's my first acpi driver. My understanding of acpi functions is
not enough at that time. I want to rewrite it.
--
Hiroshi Miura --- http://www.da-cha.org/ --- miura@da-cha.org
NTTDATA Corp. OpenSource Software Center. --- miurahr@nttdata.co.jp
NTTDATA Intellilink Corp. OpenSource Engineering Dev. -- miurahr@intellilink.co.jp
Key fingerprint = 9117 9407 5684 FBF1 4063 15B4 401D D077 04AB 8617
prev parent reply other threads:[~2004-08-19 3:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-31 14:17 [PATCH]Panasonic Hotkey Driver Hiroshi Miura
2004-08-18 5:04 ` [PATCH][ACPI] Panasonic " Len Brown
2004-08-18 14:52 ` [PATCH]Panasonic " John Belmonte
2004-08-19 3:41 ` [PATCH][ACPI] Panasonic " Hiroshi Miura
2004-08-19 3:50 ` Hiroshi Miura [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=87smaj7pm6.wl%miura@da-cha.org \
--to=miura@da-cha.org \
--cc=acpi-devel@lists.sourceforge.net \
--cc=len.brown@intel.com \
--cc=letsnote-tech@ml.good-day.co.jp \
--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