diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2015-12-16 13:42:25 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.200> | 2015-12-21 14:23:03 +0000 |
commit | 45e14d9435eef26cb8afb152a56d9f303192fbdd (patch) | |
tree | f070a5714a55d09479800110ba219a16c0fb9b2e /recipes-kernel/hdm-dim2/files/dim2_sysfs.h | |
parent | 565235cf6861f03a8d9d6b2613213509949b44d9 (diff) |
recipes-kernel: add MOST driver kernel modules
This commit adds the recipes-kernel directory to the meta-agl-demo
layer. It is needed to add the MOST driver to the AGL layer and have
it compiled as out-of-tree modules.
Change-Id: I38174a2f9a59b0424cfaf2f85f059550422f58f2
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Diffstat (limited to 'recipes-kernel/hdm-dim2/files/dim2_sysfs.h')
-rw-r--r-- | recipes-kernel/hdm-dim2/files/dim2_sysfs.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-kernel/hdm-dim2/files/dim2_sysfs.h b/recipes-kernel/hdm-dim2/files/dim2_sysfs.h new file mode 100644 index 000000000..b71dd027e --- /dev/null +++ b/recipes-kernel/hdm-dim2/files/dim2_sysfs.h @@ -0,0 +1,36 @@ +/* + * dim2_sysfs.h - MediaLB sysfs information + * + * Copyright (C) 2015, Microchip Technology Germany II GmbH & Co. KG + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * This file is licensed under GPLv2. + */ + +/* Author: Andrey Shvetsov <andrey.shvetsov@k2l.de> */ + +#ifndef DIM2_SYSFS_H +#define DIM2_SYSFS_H + +#include <linux/kobject.h> + +struct medialb_bus { + struct kobject kobj_group; +}; + +struct dim2_hdm; + +int dim2_sysfs_probe(struct medialb_bus *bus, struct kobject *parent_kobj); +void dim2_sysfs_destroy(struct medialb_bus *bus); + +/* + * callback, + * must deliver MediaLB state as true if locked or false if unlocked + */ +bool dim2_sysfs_get_state_cb(void); + +#endif /* DIM2_SYSFS_H */ |