device: Constify struct device * parameter to dev_name
commit5b5c233e909b67482908b0f32452c7cbcd6fae0e
authorFurquan Shaikh <furquan@google.com>
Sat, 25 Apr 2020 04:31:35 +0000 (24 21:31 -0700)
committerFurquan Shaikh <furquan@google.com>
Tue, 28 Apr 2020 19:39:37 +0000 (28 19:39 +0000)
tree5d678955ac72d3f790ffb9eb6ca030316daf9126
parentd14d03a6a8518ac3b4e24e8e35d60ce5e9d726aa
device: Constify struct device * parameter to dev_name

dev_name() does not need to modify the device structure. Hence, this
change makes the struct device * parameter to dev_name() as const.

Change-Id: I6a94394385e45fd76f68218bf57914bddd2e2121
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40703
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/device/device_util.c
src/include/device/device.h