Skip to content

Commit

Permalink
coding guidelines: comply with MISRA Rule 11.8
Browse files Browse the repository at this point in the history
- modified parameter types to receive a const pointer when a
  non-const pointer is not needed

Signed-off-by: Hess Nathan <nhess@baumer.com>
  • Loading branch information
DeHess committed May 13, 2024
1 parent 64f4130 commit 6960f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/kernel/device/src/mmio.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ DEVICE_DEFINE(foo0, "foo0", foo_single_init, NULL,
*/
ZTEST(device, test_mmio_single)
{
struct z_device_mmio_rom *rom;
const struct z_device_mmio_rom *rom;
const struct device *dev = device_get_binding("foo0");
mm_reg_t regs;

Expand Down

0 comments on commit 6960f1a

Please sign in to comment.