From 2d633fba367ec4567b225eac05f127769599c65d Mon Sep 17 00:00:00 2001 From: Jonathan Cameron Date: Tue, 30 Aug 2011 12:32:48 +0100 Subject: [PATCH] --- yaml --- r: 268146 b: refs/heads/master c: f625cb97d4d58f311a9606a4bcf9d9a334ca9952 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/staging/iio/iio_core.h | 9 --------- trunk/drivers/staging/iio/industrialio-core.c | 9 +++------ 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/[refs] b/[refs] index ec5a4f01b02e..5ec266c755f1 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1aa042783251c27a93e31929c24647729db326d4 +refs/heads/master: f625cb97d4d58f311a9606a4bcf9d9a334ca9952 diff --git a/trunk/drivers/staging/iio/iio_core.h b/trunk/drivers/staging/iio/iio_core.h index a27fa05d6609..433952bb843a 100644 --- a/trunk/drivers/staging/iio/iio_core.h +++ b/trunk/drivers/staging/iio/iio_core.h @@ -13,13 +13,6 @@ #ifndef _IIO_CORE_H_ #define _IIO_CORE_H_ -/** - * iio_device_get_chrdev_minor() - get an unused minor number - **/ -int iio_device_get_chrdev_minor(void); -void iio_device_free_chrdev_minor(int val); - - /** * iio_put() - internal module reference count reduce **/ @@ -30,8 +23,6 @@ void iio_put(void); **/ void iio_get(void); -extern dev_t iio_devt; - int __iio_add_chan_devattr(const char *postfix, const char *group, struct iio_chan_spec const *chan, diff --git a/trunk/drivers/staging/iio/industrialio-core.c b/trunk/drivers/staging/iio/industrialio-core.c index e55edfa5586d..de918782d3bc 100644 --- a/trunk/drivers/staging/iio/industrialio-core.c +++ b/trunk/drivers/staging/iio/industrialio-core.c @@ -27,9 +27,6 @@ #include "iio_core_trigger.h" #include "chrdev.h" -#define IIO_ID_PREFIX "device" -#define IIO_ID_FORMAT IIO_ID_PREFIX "%d" - /* IDR to assign each registered device a unique id*/ static DEFINE_IDA(iio_ida); /* IDR to allocate character device minor numbers */ @@ -37,7 +34,7 @@ static DEFINE_IDA(iio_chrdev_ida); /* Lock used to protect both of the above */ static DEFINE_SPINLOCK(iio_ida_lock); -dev_t iio_devt; +static dev_t iio_devt; #define IIO_DEV_MAX 256 struct bus_type iio_bus_type = { @@ -276,7 +273,7 @@ static const struct file_operations iio_event_chrdev_fileops = { .llseek = noop_llseek, }; -int iio_device_get_chrdev_minor(void) +static int iio_device_get_chrdev_minor(void) { int ret; @@ -287,7 +284,7 @@ int iio_device_get_chrdev_minor(void) return -ENOMEM; } -void iio_device_free_chrdev_minor(int val) +static void iio_device_free_chrdev_minor(int val) { iio_free_ida_val(&iio_chrdev_ida, val); }