summaryrefslogtreecommitdiff
path: root/src/android/mm/libhardware_stub.c
blob: 00f15cd90cac0896211fa0fa0baad78c61086160 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SPDX-License-Identifier: Apache-2.0 */
/*
 * Copyright (C) 2023, Ideas on Board
 *
 * libhardware_stub.c - Android libhardware stub for test compilation
 */

#include <errno.h>

#include <hardware/hardware.h>

int hw_get_module(const char *id __attribute__((__unused__)),
		  const struct hw_module_t **module)
{
	*module = NULL;
	return -ENOTSUP;
}