bdk: constify various args

This commit is contained in:
CTCaer
2024-10-04 21:45:57 +03:00
parent b1bc6ebdd8
commit 9e239df39e
20 changed files with 36 additions and 35 deletions

View File

@@ -75,7 +75,7 @@ void bm92t36_get_sink_info(bool *inserted, usb_pd_objects_t *usb_pd)
{
memset(buf, 0, sizeof(buf));
_bm92t36_read_reg(buf, 2, STATUS1_REG);
*inserted = buf[0] & STATUS1_INSERT ? true : false;
*inserted = (buf[0] & STATUS1_INSERT) ? true : false;
}
if (usb_pd)