You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
562 B
34 lines
562 B
/*
|
|
* (C) Copyright 2017 Rockchip Electronics Co., Ltd
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <dm.h>
|
|
#include <rc.h>
|
|
|
|
int rc_get_keycode(struct udevice *dev)
|
|
{
|
|
const struct dm_rc_ops *ops = dev_get_driver_ops(dev);
|
|
|
|
if (!ops || !ops->get_keycode)
|
|
return -ENOSYS;
|
|
|
|
return ops->get_keycode(dev);
|
|
}
|
|
|
|
int rc_get_repeat(struct udevice *dev)
|
|
{
|
|
const struct dm_rc_ops *ops = dev_get_driver_ops(dev);
|
|
|
|
if (!ops || !ops->get_repeat)
|
|
return -ENOSYS;
|
|
|
|
return ops->get_repeat(dev);
|
|
}
|
|
|
|
UCLASS_DRIVER(rc) = {
|
|
.id = UCLASS_RC,
|
|
.name = "rc",
|
|
};
|