linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: linux-omap@vger.kernel.org
Cc: linux-fbdev@vger.kernel.org
Subject: Re: [PATCH 05/10] OMAP: DSS2: string parsing cleanups
Date: Mon, 22 Aug 2011 12:22:25 +0000	[thread overview]
Message-ID: <1314015745.2168.41.camel@deskari> (raw)
In-Reply-To: <1314001671-18123-6-git-send-email-tomi.valkeinen@ti.com>

On Mon, 2011-08-22 at 11:27 +0300, Tomi Valkeinen wrote:
> Use strtobool and kstrto* functions when parsing sysfs inputs.
> 
> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
> ---
>  drivers/video/omap2/dss/display.c |   21 +++++++++------------
>  drivers/video/omap2/dss/manager.c |   37 +++++++++++++++++++------------------
>  drivers/video/omap2/dss/overlay.c |    7 +++----
>  3 files changed, 31 insertions(+), 34 deletions(-)

<snip>

> diff --git a/drivers/video/omap2/dss/overlay.c b/drivers/video/omap2/dss/overlay.c
> index a95f25e..b2a5685 100644
> --- a/drivers/video/omap2/dss/overlay.c
> +++ b/drivers/video/omap2/dss/overlay.c
> @@ -211,17 +211,16 @@ static ssize_t overlay_enabled_show(struct omap_overlay *ovl, char *buf)
>  static ssize_t overlay_enabled_store(struct omap_overlay *ovl, const char *buf,
>  		size_t size)
>  {
> -	int r, enable;
> +	int r;
> +	bool enable;
>  	struct omap_overlay_info info;
>  
>  	ovl->get_overlay_info(ovl, &info);
>  
> -	r = kstrtoint(buf, 0, &enable);
> +	r = strtobool(buf, &enable);
>  	if (r)
>  		return r;
>  
> -	info.enabled = !!enable;
> -
>  	r = ovl->set_overlay_info(ovl, &info);
>  	if (r)
>  		return r;

Oops. This removes the lines that write the new value to overlay_info,
thus making it impossible to change the enable-status. I'll fix this.

 Tomi



  reply	other threads:[~2011-08-22 12:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-22  8:27 [PATCH 00/10] OMAPDSS: code cleanups Tomi Valkeinen
2011-08-22  8:27 ` [PATCH 01/10] OMAP: DSS2: Remove support for non-DISPC overlays Tomi Valkeinen
2011-08-22  8:27 ` [PATCH 02/10] OMAP: DSS2: DISPC: use lookup tables for bit shifts Tomi Valkeinen
2011-08-22  8:27 ` [PATCH 03/10] OMAP: DSS2: Add overlay caps to DSS features Tomi Valkeinen
2011-08-22  8:27 ` [PATCH 04/10] OMAP: DSS2: Add GLOBAL_ALPHA & PRE_MULT_ALPHA to ovl caps Tomi Valkeinen
2011-08-22  8:27 ` [PATCH 05/10] OMAP: DSS2: string parsing cleanups Tomi Valkeinen
2011-08-22 12:22   ` Tomi Valkeinen [this message]
2011-08-22  8:27 ` [PATCH 06/10] OMAP: OMAPFB: " Tomi Valkeinen
2011-08-22  8:27 ` [PATCH 07/10] OMAP: DSS2: DISPC: remove non-existing func prototypes Tomi Valkeinen
2011-08-22  8:27 ` [PATCH 08/10] OMAP: DSS2: DISPC: rename overlay related funcs Tomi Valkeinen
2011-08-22  8:27 ` [PATCH 09/10] OMAP: DSS2: DISPC: rename manager " Tomi Valkeinen
2011-08-22  8:27 ` [PATCH 10/10] OMAP: DSS2: reorganize functions in dss.h Tomi Valkeinen
2011-08-22  8:42 ` [PATCH 00/10] OMAPDSS: code cleanups Tomi Valkeinen

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=1314015745.2168.41.camel@deskari \
    --to=tomi.valkeinen@ti.com \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-omap@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;
as well as URLs for NNTP newsgroup(s).