From: Andrew Morton <akpm@linux-foundation.org>
To: Peter Meerwald <pmeerw@pmeerw.net>
Cc: linux-kernel@vger.kernel.org, rpurdie@rpsys.net, lars@metafoo.de,
Peter Meerwald <p.meerwald@bct-electronic.com>
Subject: Re: [PATCH] add LED driver for PCA9663 I2C chip
Date: Thu, 2 Feb 2012 14:08:31 -0800 [thread overview]
Message-ID: <20120202140831.457ce732.akpm@linux-foundation.org> (raw)
In-Reply-To: <1328218873-6469-1-git-send-email-pmeerw@pmeerw.net>
On Thu, 2 Feb 2012 22:41:13 +0100
Peter Meerwald <pmeerw@pmeerw.net> wrote:
> From: Peter Meerwald <p.meerwald@bct-electronic.com>
>
> simple driver for the PCA9633 I2C chip supporting four LEDs and
> 255 brightness levels
>
>
> ...
>
> +
> + pca9633 = kcalloc(sizeof(*pca9633) * 4, GFP_KERNEL);
err,
--- a/drivers/leds/leds-pca9633.c~drivers-leds-add-driver-for-pca9663-i2c-chip-fix
+++ a/drivers/leds/leds-pca9633.c
@@ -110,7 +110,7 @@ static int __devinit pca9633_probe(struc
}
}
- pca9633 = kcalloc(sizeof(*pca9633) * 4, GFP_KERNEL);
+ pca9633 = kcalloc(sizeof(*pca9633), 4, GFP_KERNEL);
if (!pca9633)
return -ENOMEM;
>
> ...
>
prev parent reply other threads:[~2012-02-02 22:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-02 21:41 Peter Meerwald
2012-02-02 22:08 ` Andrew Morton [this message]
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=20120202140831.457ce732.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=lars@metafoo.de \
--cc=linux-kernel@vger.kernel.org \
--cc=p.meerwald@bct-electronic.com \
--cc=pmeerw@pmeerw.net \
--cc=rpurdie@rpsys.net \
/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
Powered by JetHome