1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 /***************************************************************************
4 * Copyright (C) 2015 Andreas Fritiofson *
5 * andreas.fritiofson@gmail.com *
6 ***************************************************************************/
15 static const char * const jep106[][126] = {
19 const char *jep106_table_manufacturer(unsigned int bank, unsigned int id)
21 if (id < 1 || id > 126) {
22 LOG_DEBUG("BUG: Caller passed out-of-range JEP106 ID!");
26 /* index is zero based */
29 if (bank >= ARRAY_SIZE(jep106) || jep106[bank][id] == 0)
32 return jep106[bank][id];