lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d120d5000612221226q40ae235ex251c1bc0c55d42a6@mail.gmail.com>
Date:	Fri, 22 Dec 2006 15:26:01 -0500
From:	"Dmitry Torokhov" <dmitry.torokhov@...il.com>
To:	"David Brownell" <david-b@...bell.net>
Cc:	nicolas.ferre@....atmel.com, linux-kernel@...r.kernel.org
Subject: Re: [patch 2.6.20-rc1 3/6] input: ads7846 more compatible with hwmon

On 12/22/06, David Brownell <david-b@...bell.net> wrote:
> Be more compatible with the hwmon framework:
>
>  - Hook up to hwmon
>     * show sensor attrubites only if hwmon is present
>     * otherwise be just a touchscreen
>  - Report voltages per hwmon convention
>     * measure in millivolts
>     * voltages are named in[0-8]_input (ugh)
>     * for 7846 chips, properly range-adjust vBATT/in1_input

There are too many #ifdefs. Please consider creating
ads7846_[un]register_hwmon() and use them in
ads7846_probe()/ads7846_remove(). Split hwmon related attributes into
a separate attribute group and move everything in #ifdef CONFIG_HWMON
block.

> + *
> + * FIXME make external vREF_mV be a module option, and use that as needed...
>  */
> +static const unsigned vREF_mV = 2500;
>

Why don't you make it mdule option right away?

-- 
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ