Skip to content

Commit

Permalink
iio:configfs: Introduce iio/configfs.h to provide a location for the …
Browse files Browse the repository at this point in the history
…configfs_subsystem

This exported element needs to be accesible to all drivers using configfs
within IIO.  Previously it was in the sw_trig.h file which only convered one
such usecase.  This also fixes a sparse warning as it is now in a header
that makes sense to include from industrialio-configfs.c

Signed-off-by: Jonathan Cameron < [email protected]>
  • Loading branch information
jic23 committed Dec 5, 2015
1 parent 93e87d7 commit 8d6c16d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions drivers/iio/industrialio-configfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <linux/slab.h>

#include <linux/iio/iio.h>
#include <linux/iio/configfs.h>

static struct config_item_type iio_root_group_type = {
.ct_owner = THIS_MODULE,
Expand Down
1 change: 1 addition & 0 deletions drivers/iio/industrialio-sw-trigger.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <linux/slab.h>

#include <linux/iio/sw_trigger.h>
#include <linux/iio/configfs.h>
#include <linux/configfs.h>

static struct config_group *iio_triggers_group;
Expand Down
15 changes: 15 additions & 0 deletions include/linux/iio/configfs.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Industrial I/O configfs support
*
* Copyright (c) 2015 Intel Corporation
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published by
* the Free Software Foundation.
*/
#ifndef __IIO_CONFIGFS
#define __IIO_CONFIGFS

extern struct configfs_subsystem iio_configfs_subsys;

#endif /* __IIO_CONFIGFS */
1 change: 0 additions & 1 deletion include/linux/iio/sw_trigger.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
module_driver(__iio_sw_trigger_type, iio_register_sw_trigger_type, \
iio_unregister_sw_trigger_type)

extern struct configfs_subsystem iio_configfs_subsys;
struct iio_sw_trigger_ops;

struct iio_sw_trigger_type {
Expand Down

0 comments on commit 8d6c16d

Please sign in to comment.