X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fdm-demo.h;h=7b6d0d80ff8c197e9468c9695ee4253b6e278bc7;hb=bbcacdf4cd23f2e5deb9ef916096c956c955243d;hp=a24fec6658e8e9bb1df82235222befc404411b32;hpb=dab5e3469d294a4e1ffed8407d296a78e02cc01f;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/dm-demo.h b/include/dm-demo.h index a24fec6..7b6d0d8 100644 --- a/include/dm-demo.h +++ b/include/dm-demo.h @@ -1,14 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (c) 2013 Google, Inc - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __DM_DEMO_H #define __DM_DEMO_H -#include - /** * struct dm_demo_pdata - configuration data for demo instance * @@ -25,10 +22,14 @@ struct dm_demo_pdata { struct demo_ops { int (*hello)(struct udevice *dev, int ch); int (*status)(struct udevice *dev, int *status); + int (*set_light)(struct udevice *dev, int light); + int (*get_light)(struct udevice *dev); }; int demo_hello(struct udevice *dev, int ch); int demo_status(struct udevice *dev, int *status); +int demo_set_light(struct udevice *dev, int light); +int demo_get_light(struct udevice *dev); int demo_list(void); int demo_parse_dt(struct udevice *dev);