From: Nicolas Ferre <nicolas.ferre@atmel.com>
To: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>,
Andrew Victor <linux@maxim.org.za>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ARM: at91: sam9260: fix compilation issues
Date: Mon, 12 May 2014 16:59:22 +0200 [thread overview]
Message-ID: <5370E1CA.8070707@atmel.com> (raw)
In-Reply-To: <1399484748-32718-1-git-send-email-alexandre.belloni@free-electrons.com>
On 07/05/2014 19:45, Alexandre Belloni :
> Use the hexadecimal values for the triggers to match what is done for the device
> tree. This also fixes compilation issues as the defines have been moved
> elsewhere.
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Ok, as anyway these files will disappear at some point...
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Added to at91-3.16-cleanup2. Thanks,
> ---
> I believe that at some point, we may want to reintroduce defines for those
> values but we should probably do that in a dt-bindings include and choose better
> names as the meaning differ between SoCs.
>
> arch/arm/mach-at91/at91sam9260_devices.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm/mach-at91/at91sam9260_devices.c b/arch/arm/mach-at91/at91sam9260_devices.c
> index fffcd09ac878..a8d0d9cb1bca 100644
> --- a/arch/arm/mach-at91/at91sam9260_devices.c
> +++ b/arch/arm/mach-at91/at91sam9260_devices.c
> @@ -1307,19 +1307,19 @@ static struct platform_device at91_adc_device = {
> static struct at91_adc_trigger at91_adc_triggers[] = {
> [0] = {
> .name = "timer-counter-0",
> - .value = AT91_ADC_TRGSEL_TC0 | AT91_ADC_TRGEN,
> + .value = 0x1,
> },
> [1] = {
> .name = "timer-counter-1",
> - .value = AT91_ADC_TRGSEL_TC1 | AT91_ADC_TRGEN,
> + .value = 0x3,
> },
> [2] = {
> .name = "timer-counter-2",
> - .value = AT91_ADC_TRGSEL_TC2 | AT91_ADC_TRGEN,
> + .value = 0x5,
> },
> [3] = {
> .name = "external",
> - .value = AT91_ADC_TRGSEL_EXTERNAL | AT91_ADC_TRGEN,
> + .value = 0xd,
> .is_external = true,
> },
> };
>
--
Nicolas Ferre
prev parent reply other threads:[~2014-05-12 14:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-07 17:45 [PATCH] ARM: at91: sam9260: fix compilation issues Alexandre Belloni
2014-05-12 14:59 ` Nicolas Ferre [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=5370E1CA.8070707@atmel.com \
--to=nicolas.ferre@atmel.com \
--cc=alexandre.belloni@free-electrons.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@maxim.org.za \
--cc=plagnioj@jcrosoft.com \
/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