]> git.ipfire.org Git - people/ms/u-boot.git/blob - include/pwrseq.h
dfu: Fix up the Kconfig mess
[people/ms/u-boot.git] / include / pwrseq.h
1 /*
2 * Copyright (c) 2013 Google, Inc
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7 #ifndef __pwrseq_h
8 #define __pwrseq_h
9
10 struct pwrseq_ops {
11 int (*set_power)(struct udevice *dev, bool enable);
12 };
13
14 #define pwrseq_get_ops(dev) ((struct pwrseq_ops *)(dev)->driver->ops)
15
16 int pwrseq_set_power(struct udevice *dev, bool enable);
17
18 #endif