summaryrefslogtreecommitdiff
path: root/scripts/Makefile.kcov
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2021-06-08 20:17:46 +0930
committerCorey Minyard <cminyard@mvista.com>2021-06-21 19:50:13 -0500
commitd7096970075ef47c9906fd241cc4939cc11ddd01 (patch)
tree7a9481c20718d953e8c4a77a76a3ea401155ad9a /scripts/Makefile.kcov
parent55ab48b4e356212fbe084ca110db73bb9a6e7058 (diff)
ipmi: kcs_bmc: Turn the driver data-structures inside-out
Make the KCS device drivers responsible for allocating their own memory. Until now the private data for the device driver was allocated internal to the private data for the chardev interface. This coupling required the slightly awkward API of passing through the struct size for the driver private data to the chardev constructor, and then retrieving a pointer to the driver private data from the allocated chardev memory. In addition to being awkward, the arrangement prevents the implementation of alternative userspace interfaces as the device driver private data is not independent. Peel a layer off the onion and turn the data-structures inside out by exploiting container_of() and embedding `struct kcs_device` in the driver private data. Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Reviewed-by: Zev Weiss <zweiss@equinix.com> Message-Id: <20210608104757.582199-6-andrew@aj.id.au> Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'scripts/Makefile.kcov')
0 files changed, 0 insertions, 0 deletions