summaryrefslogtreecommitdiffstats
path: root/hw/i2c/core.c
diff options
context:
space:
mode:
authorChristian Schoenebeck2021-09-27 17:50:36 +0200
committerChristian Schoenebeck2021-10-27 14:45:22 +0200
commit04a7f9e55e0930b87805f7c97851eea4610e78fc (patch)
treee71564b18c752c0068b57eab1f9f949eb39416a0 /hw/i2c/core.c
parent9pfs: deduplicate iounit code (diff)
downloadqemu-04a7f9e55e0930b87805f7c97851eea4610e78fc.tar.gz
qemu-04a7f9e55e0930b87805f7c97851eea4610e78fc.tar.xz
qemu-04a7f9e55e0930b87805f7c97851eea4610e78fc.zip
9pfs: simplify blksize_to_iounit()
Use QEMU_ALIGN_DOWN() macro to reduce code and to make it more human readable. Suggested-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Reviewed-by: Greg Kurz <groug@kaod.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <b84eb324d2ebdcc6f9c442c97b5b4d01eecb4f43.1632758315.git.qemu_oss@crudebyte.com>
Diffstat (limited to 'hw/i2c/core.c')
0 files changed, 0 insertions, 0 deletions