diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2022-11-18 15:05:39 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-11-22 13:40:56 +0000 |
commit | 1ef547eec7262f96770f1fe4d1c6ff44b624dbe2 (patch) | |
tree | 208ee987a82a1a5db011fccab7e6a9ed9ef8cdb4 /src/drivers/i2c/ptn3460 | |
parent | 385939f7cfeeb732c4a54f6069940c2a7de53579 (diff) |
src/drivers: Remove unnecessary space after casts
Change-Id: I16689da893b5a0c3254364759d435281cb3e1caf
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69803
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/i2c/ptn3460')
-rw-r--r-- | src/drivers/i2c/ptn3460/ptn3460.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/i2c/ptn3460/ptn3460.c b/src/drivers/i2c/ptn3460/ptn3460.c index 25ed98a4be..46719dc5e6 100644 --- a/src/drivers/i2c/ptn3460/ptn3460.c +++ b/src/drivers/i2c/ptn3460/ptn3460.c @@ -63,7 +63,7 @@ static int ptn3460_write_edid(struct device *dev, u8 edid_num, u8 *data) static void ptn3460_init(struct device *dev) { struct ptn_3460_config cfg; - uint8_t edid_data[PTN_EDID_LEN], edid_tab, *ptr = (uint8_t *) &cfg; + uint8_t edid_data[PTN_EDID_LEN], edid_tab, *ptr = (uint8_t *)&cfg; int i, val; /* Guard against re-initialization of the device */ @@ -108,7 +108,7 @@ static void ptn3460_init(struct device *dev) /* Mainboard can modify the configuration data. Write back configuration data to PTN3460 if modified by mainboard */ if (mb_adjust_cfg(&cfg) == PTN_CFG_MODIFIED) { - ptr = (uint8_t *) &cfg; + ptr = (uint8_t *)&cfg; for (i = 0; i < sizeof(struct ptn_3460_config); i++) { val = i2c_dev_writeb_at(dev, PTN_CONFIG_OFF + i, *ptr++); if (val < 0) { |