Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1676645 > unrolled thread
| Started by | Colin King <colin.king@canonical.com> |
|---|---|
| First post | 2017-06-28 15:10 +0200 |
| Last post | 2017-07-01 12:20 +0200 |
| Articles | 3 — 3 participants |
Back to article view | Back to linux.kernel
[PATCH][iio-next] iio: adc: stm32: make array stm32h7_adc_ckmodes_spec static Colin King <colin.king@canonical.com> - 2017-06-28 15:10 +0200
Re: [PATCH][iio-next] iio: adc: stm32: make array stm32h7_adc_ckmodes_spec static Fabrice Gasnier <fabrice.gasnier@st.com> - 2017-06-28 16:40 +0200
Re: [PATCH][iio-next] iio: adc: stm32: make array stm32h7_adc_ckmodes_spec static Jonathan Cameron <jic23@kernel.org> - 2017-07-01 12:20 +0200
| From | Colin King <colin.king@canonical.com> |
|---|---|
| Date | 2017-06-28 15:10 +0200 |
| Subject | [PATCH][iio-next] iio: adc: stm32: make array stm32h7_adc_ckmodes_spec static |
| Message-ID | <tXkTg-7cj-15@gated-at.bofh.it> |
From: Colin Ian King <colin.king@canonical.com>
The array stm32h7_adc_ckmodes_spec does not need to be in global scope, so
make it static.
Cleans up sparse warning:
"symbol 'stm32h7_adc_ckmodes_spec' was not declared. Should it be static?"
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
drivers/iio/adc/stm32-adc-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/adc/stm32-adc-core.c b/drivers/iio/adc/stm32-adc-core.c
index e09233b03c05..9d083c2338f9 100644
--- a/drivers/iio/adc/stm32-adc-core.c
+++ b/drivers/iio/adc/stm32-adc-core.c
@@ -172,7 +172,7 @@ struct stm32h7_adc_ck_spec {
int div;
};
-const struct stm32h7_adc_ck_spec stm32h7_adc_ckmodes_spec[] = {
+static const struct stm32h7_adc_ck_spec stm32h7_adc_ckmodes_spec[] = {
/* 00: CK_ADC[1..3]: Asynchronous clock modes */
{ 0, 0, 1 },
{ 0, 1, 2 },
--
2.11.0
[toc] | [next] | [standalone]
| From | Fabrice Gasnier <fabrice.gasnier@st.com> |
|---|---|
| Date | 2017-06-28 16:40 +0200 |
| Subject | Re: [PATCH][iio-next] iio: adc: stm32: make array stm32h7_adc_ckmodes_spec static |
| Message-ID | <tXmil-7Xs-1@gated-at.bofh.it> |
| In reply to | #1676645 |
On 06/28/2017 03:06 PM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> The array stm32h7_adc_ckmodes_spec does not need to be in global scope, so
> make it static.
>
> Cleans up sparse warning:
> "symbol 'stm32h7_adc_ckmodes_spec' was not declared. Should it be static?"
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
> drivers/iio/adc/stm32-adc-core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/adc/stm32-adc-core.c b/drivers/iio/adc/stm32-adc-core.c
> index e09233b03c05..9d083c2338f9 100644
> --- a/drivers/iio/adc/stm32-adc-core.c
> +++ b/drivers/iio/adc/stm32-adc-core.c
> @@ -172,7 +172,7 @@ struct stm32h7_adc_ck_spec {
> int div;
> };
>
> -const struct stm32h7_adc_ck_spec stm32h7_adc_ckmodes_spec[] = {
> +static const struct stm32h7_adc_ck_spec stm32h7_adc_ckmodes_spec[] = {
> /* 00: CK_ADC[1..3]: Asynchronous clock modes */
> { 0, 0, 1 },
> { 0, 1, 2 },
>
Acked-by: Fabrice Gasnier <fabrice.gasnier@st.com>
[toc] | [prev] | [next] | [standalone]
| From | Jonathan Cameron <jic23@kernel.org> |
|---|---|
| Date | 2017-07-01 12:20 +0200 |
| Subject | Re: [PATCH][iio-next] iio: adc: stm32: make array stm32h7_adc_ckmodes_spec static |
| Message-ID | <tYnFo-1Km-1@gated-at.bofh.it> |
| In reply to | #1676720 |
On Wed, 28 Jun 2017 16:35:04 +0200
Fabrice Gasnier <fabrice.gasnier@st.com> wrote:
> On 06/28/2017 03:06 PM, Colin King wrote:
> > From: Colin Ian King <colin.king@canonical.com>
> >
> > The array stm32h7_adc_ckmodes_spec does not need to be in global scope, so
> > make it static.
> >
> > Cleans up sparse warning:
> > "symbol 'stm32h7_adc_ckmodes_spec' was not declared. Should it be static?"
> >
> > Signed-off-by: Colin Ian King <colin.king@canonical.com>
> > ---
> > drivers/iio/adc/stm32-adc-core.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/iio/adc/stm32-adc-core.c b/drivers/iio/adc/stm32-adc-core.c
> > index e09233b03c05..9d083c2338f9 100644
> > --- a/drivers/iio/adc/stm32-adc-core.c
> > +++ b/drivers/iio/adc/stm32-adc-core.c
> > @@ -172,7 +172,7 @@ struct stm32h7_adc_ck_spec {
> > int div;
> > };
> >
> > -const struct stm32h7_adc_ck_spec stm32h7_adc_ckmodes_spec[] = {
> > +static const struct stm32h7_adc_ck_spec stm32h7_adc_ckmodes_spec[] = {
> > /* 00: CK_ADC[1..3]: Asynchronous clock modes */
> > { 0, 0, 1 },
> > { 0, 1, 2 },
> >
> Acked-by: Fabrice Gasnier <fabrice.gasnier@st.com>
applied to the togreg branch of iio.git and pushed out as
testing for the autobuilders to play with it.
Thanks,
Jonathan
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web