blob: 9a5f5df7e88d83f087e8da940cc799c7c1443859 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _I2C_PI608GP_H_
#define _I2C_PI608GP_H_
#include <stdint.h>
/* Struct to store fixed-point millivolt values */
struct deemph_lvl { uint32_t lvl, lvl_10; };
#define AMP_LVL_MV(_LVL) (_LVL)
#define DEEMPH_LVL_MV(_LVL, _LVL_10) { .lvl = _LVL, .lvl_10 = _LVL_10 }
#endif
|