[coreboot-gerrit] Change in ...coreboot[master]: include/device/smbus.h: Don't use device_t
HAOUAS Elyes (Code Review)
gerrit at coreboot.org
Sun Dec 2 22:07:44 CET 2018
HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/30010
Change subject: include/device/smbus.h: Don't use device_t
......................................................................
include/device/smbus.h: Don't use device_t
Use of device_t is deprecated.
Change-Id: I76088d9ebfa0bb1edcb73c29e0e8023d489bb5a9
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
M src/include/device/smbus.h
1 file changed, 7 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/10/30010/1
diff --git a/src/include/device/smbus.h b/src/include/device/smbus.h
index 639e938..621300d 100644
--- a/src/include/device/smbus.h
+++ b/src/include/device/smbus.h
@@ -51,9 +51,13 @@
return i2c_dev_writeb_at(dev, addr, val);
}
-int smbus_block_read(device_t dev, u8 cmd, u8 bytes, u8 *buffer);
-int smbus_block_write(device_t dev, u8 cmd, u8 bytes, const u8 *buffer);
-
+#ifdef __SIMPLE_DEVICE__
+int smbus_block_read(pci_devfn_t dev, u8 cmd, u8 bytes, u8 *buffer);
+int smbus_block_write(pci_devfn_t dev, u8 cmd, u8 bytes, const u8 *buffer);
+#else
+int smbus_block_read(struct device *dev, u8 cmd, u8 bytes, u8 *buffer);
+int smbus_block_write(struct device *dev, u8 cmd, u8 bytes, const u8 *buffer);
+#endif
#if IS_ENABLED(CONFIG_SMBUS_HAS_AUX_CHANNELS)
void smbus_switch_to_channel(uint8_t channel_number);
uint8_t smbus_get_current_channel(void);
--
To view, visit https://review.coreboot.org/c/coreboot/+/30010
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I76088d9ebfa0bb1edcb73c29e0e8023d489bb5a9
Gerrit-Change-Number: 30010
Gerrit-PatchSet: 1
Gerrit-Owner: HAOUAS Elyes <ehaouas at noos.fr>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20181202/583eb600/attachment.html>
More information about the coreboot-gerrit
mailing list