linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC/PATCH 08/10] [ARM] tegra: Add framebuffer driver
Date: Thu, 18 Mar 2010 08:47:43 +0000	[thread overview]
Message-ID: <20100318084743.GC8267@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <1268721688-27550-9-git-send-email-konkers@google.com>

On Mon, Mar 15, 2010 at 11:41:26PM -0700, konkers at google.com wrote:
> +static int tegra_fb_set_par(struct fb_info *info)
> +{
> +	struct tegra_fb_info *tegra_fb = info->par;
> +	struct fb_var_screeninfo *var = &info->var;
> +	struct fb_fix_screeninfo *fix = &info->fix;
> +	u32 color_depth;
> +	unsigned int h_dda;
> +	unsigned int v_dda;
> +
> +	/* we only support RGB ordering for now */
> +	switch (var->bits_per_pixel) {
> +	case 32:
> +	case 24:
> +		var->red.offset = 0;
> +		var->red.length = 8;
> +		var->green.offset = 8;
> +		var->green.length = 8;
> +		var->blue.offset = 16;
> +		var->blue.length = 8;
> +		color_depth = DC_COLOR_DEPTH_B8G8R8A8;
> +		break;
> +	case 16:
> +		var->red.offset = 11;
> +		var->red.length = 5;
> +		var->green.offset = 5;
> +		var->green.length = 6;
> +		var->blue.offset = 0;
> +		var->blue.length = 5;
> +		color_depth = DC_COLOR_DEPTH_B5G6R5;
> +		break;
> +	default:
> +		return -1;

Is this really -EPERM, "Operation not permitted"?  Please use a proper
errno code rather than just thinking "Oh, I'll use -1 because its easier".

  parent reply	other threads:[~2010-03-18  8:47 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-09 16:38 [RFC/PATCH] ARM: add Tegra support Mike Rapoport
2010-03-14  6:51 ` Mike Rapoport
2010-03-15  6:54   ` Thierry Reding
2010-03-15 16:16     ` Thierry Reding
2010-03-15 17:41 ` Gary King
2010-03-15 18:09 ` Russell King - ARM Linux
2010-03-15 22:38 ` Erik Gilling
2010-03-16  6:41   ` [RFC/PATCH 00/10] Tegra2 support konkers at google.com
2010-03-16  6:41     ` [RFC/PATCH 01/10] [ARM] tegra: initial tegra support konkers at google.com
2010-03-16  6:41       ` [RFC/PATCH 02/10] [ARM] tegra: Add IRQ support konkers at google.com
2010-03-16  6:41         ` [RFC/PATCH 03/10] [ARM] tegra: Add clock support konkers at google.com
2010-03-16  6:41           ` [RFC/PATCH 04/10] [ARM] tegra: SMP support konkers at google.com
2010-03-16  6:41             ` [RFC/PATCH 05/10] [ARM] tegra: Add timer support konkers at google.com
2010-03-16  6:41               ` [RFC/PATCH 06/10] [ARM] tegra: add GPIO support konkers at google.com
2010-03-16  6:41                 ` [RFC/PATCH 07/10] [ARM] tegra: add pinmux support konkers at google.com
2010-03-16  6:41                   ` [RFC/PATCH 08/10] [ARM] tegra: Add framebuffer driver konkers at google.com
2010-03-16  6:41                     ` [RFC/PATCH 09/10] [ARM] tegra: harmony: Add harmony board file konkers at google.com
2010-03-16  6:41                       ` [RFC/PATCH 10/10] [ARM] tegra: Add harmony_defconfig konkers at google.com
2010-03-17  8:21                       ` [RFC/PATCH 09/10] [ARM] tegra: harmony: Add harmony board file Mike Rapoport
2010-03-18  2:27                         ` Erik Gilling
2010-03-18 20:41                           ` mike at compulab.co.il
2010-03-16  7:57                     ` [RFC/PATCH 08/10] [ARM] tegra: Add framebuffer driver Jaya Kumar
2010-03-17  0:31                       ` Colin Cross
2010-03-18  8:47                     ` Russell King - ARM Linux [this message]
2010-03-18 23:57                       ` Colin Cross
2010-03-17  8:15                 ` [RFC/PATCH 06/10] [ARM] tegra: add GPIO support Mike Rapoport
2010-03-18  2:19                   ` Erik Gilling
2010-03-18  8:42           ` [RFC/PATCH 03/10] [ARM] tegra: Add clock support Russell King - ARM Linux
2010-03-18 23:57             ` Colin Cross
2010-03-17  7:57       ` [RFC/PATCH 01/10] [ARM] tegra: initial tegra support Mike Rapoport
2010-03-18  8:32     ` [RFC/PATCH 00/10] Tegra2 support Russell King - ARM Linux
2010-03-18 16:40       ` Erik Gilling
2010-03-18 20:30       ` Erik Gilling
2010-03-18 21:03         ` Erik Gilling
2010-03-16  8:49   ` [RFC/PATCH] ARM: add Tegra support Mike Rapoport
2010-03-16 13:44     ` Brian Swetland
2010-03-16 14:11       ` Mike Rapoport

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=20100318084743.GC8267@n2100.arm.linux.org.uk \
    --to=linux@arm.linux.org.uk \
    --cc=linux-arm-kernel@lists.infradead.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).