From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ns.pmeerw.net ([87.118.82.44]:33393 "EHLO pmeerw.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756373Ab3ICBGW (ORCPT ); Mon, 2 Sep 2013 21:06:22 -0400 From: Peter Meerwald To: linux-iio@vger.kernel.org Cc: Peter Meerwald Subject: [PATCH] iio: Move kernel-doc for iio_str_to_fixpoint() to iio.h Date: Tue, 3 Sep 2013 03:06:14 +0200 Message-Id: <1378170374-27598-1-git-send-email-pmeerw@pmeerw.net> Sender: linux-iio-owner@vger.kernel.org List-Id: linux-iio@vger.kernel.org Signed-off-by: Peter Meerwald --- 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); -- 1.7.9.5