From: Lars-Peter Clausen <lars@metafoo.de>
To: Peter Meerwald <pmeerw@pmeerw.net>
Cc: linux-iio@vger.kernel.org
Subject: Re: [PATCH] iio: Move kernel-doc for iio_str_to_fixpoint() to iio.h
Date: Thu, 05 Sep 2013 21:05:04 +0200 [thread overview]
Message-ID: <5228D5E0.6070503@metafoo.de> (raw)
In-Reply-To: <1378170374-27598-1-git-send-email-pmeerw@pmeerw.net>
On 09/03/2013 03:06 AM, Peter Meerwald wrote:
> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Usually the kernel-doc is kept with the implementation
> ---
> drivers/iio/industrialio-core.c | 10 ----------
> include/linux/iio/iio.h | 11 +++++++++++
> 2 files changed, 11 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
> index 2cb4841..b27c4b5 100644
> --- a/drivers/iio/industrialio-core.c
> +++ b/drivers/iio/industrialio-core.c
> @@ -409,16 +409,6 @@ static ssize_t iio_read_channel_info(struct device *dev,
> }
> }
>
> -/**
> - * iio_str_to_fixpoint() - Parse a fixed-point number from a string
> - * @str: The string to parse
> - * @fract_mult: Multiplier for the first decimal place, should be a power of 10
> - * @integer: The integer part of the number
> - * @fract: The fractional part of the number
> - *
> - * Returns 0 on success, or a negative error code if the string could not be
> - * parsed.
> - */
> int iio_str_to_fixpoint(const char *str, int fract_mult,
> int *integer, int *fract)
> {
> diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h
> index 01edd67..d12518e 100644
> --- a/include/linux/iio/iio.h
> +++ b/include/linux/iio/iio.h
> @@ -612,6 +612,17 @@ static inline struct dentry *iio_get_debugfs_dentry(struct iio_dev *indio_dev)
> }
> #endif
>
> +
> +/**
> + * iio_str_to_fixpoint() - Parse a fixed-point number from a string
> + * @str: The string to parse
> + * @fract_mult: Multiplier for the first decimal place, should be a power of 10
> + * @integer: The integer part of the number
> + * @fract: The fractional part of the number
> + *
> + * Returns 0 on success, or a negative error code if the string could not be
> + * parsed.
> + */
> int iio_str_to_fixpoint(const char *str, int fract_mult, int *integer,
> int *fract);
>
>
next prev parent reply other threads:[~2013-09-05 19:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-03 1:06 [PATCH] iio: Move kernel-doc for iio_str_to_fixpoint() to iio.h Peter Meerwald
2013-09-05 19:05 ` Lars-Peter Clausen [this message]
2013-09-08 15:02 ` Peter Meerwald
2013-09-08 15:29 ` Jonathan Cameron
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=5228D5E0.6070503@metafoo.de \
--to=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=pmeerw@pmeerw.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;
as well as URLs for NNTP newsgroup(s).