lkml.org 
[lkml]   [2016]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] regulator: core: Add debugfs to show constraint flags
On Thu, Apr 21, 2016 at 01:36:14PM +0100, Richard Fitzgerald wrote:

> + ret = snprintf(buf, PAGE_SIZE,
> + "always_on: %u\nboot_on: %u\napply_uV: %u\nramp_disable: %u\n"
> + "soft_start: %u\npull_down: %u\nover_current_protection: %u\n",
> + !!c->always_on,
> + !!c->boot_on,
> + !!c->apply_uV,
> + !!c->ramp_disable,
> + !!c->soft_start,
> + !!c->pull_down,
> + !!c->over_current_protection);

Can we try for legibility please? Trying to cram everything onto the
minimum number of lines really doesn't help and the !!s either do
nothing or will end up obscuring information down the line.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2016-04-21 17:21    [W:0.032 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site