Re: [PATCH 1/5] drivers/base: Add a DEVICE_BOOL_ATTR macro

From: Greg Kroah-Hartman
Date: Wed Oct 17 2012 - 16:44:19 EST

On Wed, Oct 17, 2012 at 10:36:12PM +0200, Borislav Petkov wrote:
> On Wed, Oct 17, 2012 at 01:29:00PM -0700, Greg Kroah-Hartman wrote:
> > Take the function already from the module code, it should be reusable,
> > if not, it would be a good idea to make it so.
> Function from module code? Do you mean param_get_bool/param_set_bool in
> kernel/params.c?

Yes, that's what I was thinking of, but I guess it just comes down to a
call to strtobool(), which is what you need here.

greg k-h
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at