xtensa: fix high memory/reserved memory collision
[cris-mirror.git] / include / linux / mux / consumer.h
blob5fc6bb2fefad96a739fc6502ae49330a3d4991dc
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * mux/consumer.h - definitions for the multiplexer consumer interface
5 * Copyright (C) 2017 Axentia Technologies AB
7 * Author: Peter Rosin <peda@axentia.se>
8 */
10 #ifndef _LINUX_MUX_CONSUMER_H
11 #define _LINUX_MUX_CONSUMER_H
13 #include <linux/compiler.h>
15 struct device;
16 struct mux_control;
18 unsigned int mux_control_states(struct mux_control *mux);
19 int __must_check mux_control_select(struct mux_control *mux,
20 unsigned int state);
21 int __must_check mux_control_try_select(struct mux_control *mux,
22 unsigned int state);
23 int mux_control_deselect(struct mux_control *mux);
25 struct mux_control *mux_control_get(struct device *dev, const char *mux_name);
26 void mux_control_put(struct mux_control *mux);
28 struct mux_control *devm_mux_control_get(struct device *dev,
29 const char *mux_name);
31 #endif /* _LINUX_MUX_CONSUMER_H */