diff options
| author | Daniel Scheller <d.scheller@gmx.net> | 2017-12-26 18:37:58 -0500 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-01-03 04:48:07 -0500 |
| commit | bdd7682b16988a0fac07f9cf630e4fddb73e161c (patch) | |
| tree | 4c18e0ce99b35012b9a70b2d9f681109630c81f8 /tools/perf/scripts/python/syscall-counts.py | |
| parent | media: dvb-frontends/stv0910: cleanup I2C access functions (diff) | |
| download | linux-bdd7682b16988a0fac07f9cf630e4fddb73e161c.tar.gz linux-bdd7682b16988a0fac07f9cf630e4fddb73e161c.zip | |
media: dvb-frontends/stv0910: field and register access helpers
Add a write_field() function that acts as helper to update specific bits
specified in the field defines (FSTV0910_*) in stv0910_regs.h, which was
recently updated to carry the missing offset values. With that, add the
SET_FIELD(), SET_REG() and GET_REG() macros that wrap the write_field(),
write_reg() and read_reg() functions to allow for making all demod
access code cleaner.
The write_field() function is annotated with __maybe_unused temporarily
to silence eventual compile warnings.
Picked up from the dddvb upstream, with the macro names made uppercase
so they are distinguishable as such.
Cc: Ralph Metzler <rjkm@metzlerbros.de>
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
