mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 02:15:02 +00:00

As part of bringing the master branch back in to next, we need to allow for all of these changes to exist here. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
27 lines
562 B
C
27 lines
562 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (c) 2022 Google, Inc.
|
|
* Written by Andrew Scull <ascull@google.com>
|
|
*/
|
|
|
|
#define LOG_CATEGORY UCLASS_FUZZING_ENGINE
|
|
|
|
#include <dm.h>
|
|
#include <fuzzing_engine.h>
|
|
|
|
int dm_fuzzing_engine_get_input(struct udevice *dev,
|
|
const uint8_t **data,
|
|
size_t *size)
|
|
{
|
|
const struct dm_fuzzing_engine_ops *ops = device_get_ops(dev);
|
|
|
|
if (!ops->get_input)
|
|
return -ENOSYS;
|
|
|
|
return ops->get_input(dev, data, size);
|
|
}
|
|
|
|
UCLASS_DRIVER(fuzzing_engine) = {
|
|
.name = "fuzzing_engine",
|
|
.id = UCLASS_FUZZING_ENGINE,
|
|
};
|