Re: [PATCH v1 2/4] leds: trigger: gpio: Convert to use kstrtox()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 23, 2023 at 11:05:38AM +0000, Lee Jones wrote:
> On Fri, 03 Nov 2023, Andy Shevchenko wrote:

...

> > -	ret = sscanf(buf, "%u", &desired_brightness);

"%u" (see man sscanf() for the details)

...

> > +	ret = kstrtou8(buf, 10, &desired_brightness);
> 
> Where does 10 come from?

See above.

-- 
With Best Regards,
Andy Shevchenko






[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux