intel/genxml/bits: Pull the function emit code into a helper block
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 30 Mar 2017 03:21:06 +0000 (20:21 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 8 Apr 2017 05:34:04 +0000 (22:34 -0700)
commit430e6978680fc35f37cef1bfc1876ed7b9a986f8
treefecba60eab360bdb3fe87fa53f1e9fff53559d7e
parent2d52e65d03549619299c34fc2a699ef84d44321b
intel/genxml/bits: Pull the function emit code into a helper block

The helper block is extremely general.  It takes an string property name
and an object that supports three methods: has_prop, iter_prop, and
get_prop.  This way we can easily generalize it to emit more different
types of getter functions.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/genxml/gen_bits_header.py