Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/*
2 * mux/consumer.h - definitions for the multiplexer consumer interface
3 *
4 * Copyright (C) 2017 Axentia Technologies AB
5 *
6 * Author: Peter Rosin <peda@axentia.se>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 */
12
13#ifndef _LINUX_MUX_CONSUMER_H
14#define _LINUX_MUX_CONSUMER_H
15
16#include <linux/compiler.h>
17
18struct device;
19struct mux_control;
20
21unsigned int mux_control_states(struct mux_control *mux);
22int __must_check mux_control_select(struct mux_control *mux,
23 unsigned int state);
24int __must_check mux_control_try_select(struct mux_control *mux,
25 unsigned int state);
26int mux_control_deselect(struct mux_control *mux);
27
28struct mux_control *mux_control_get(struct device *dev, const char *mux_name);
29void mux_control_put(struct mux_control *mux);
30
31struct mux_control *devm_mux_control_get(struct device *dev,
32 const char *mux_name);
33
34#endif /* _LINUX_MUX_CONSUMER_H */