aboutsummaryrefslogtreecommitdiffstats
path: root/i2c_helper_linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'i2c_helper_linux.c')
-rw-r--r--i2c_helper_linux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/i2c_helper_linux.c b/i2c_helper_linux.c
index 29fdfd41..19b4404f 100644
--- a/i2c_helper_linux.c
+++ b/i2c_helper_linux.c
@@ -96,12 +96,12 @@ static int get_bus_number(char *bus_str)
return bus;
}
-int i2c_open_from_programmer_params(uint16_t addr, int force)
+int i2c_open_from_programmer_params(const struct programmer_cfg *cfg, uint16_t addr, int force)
{
int fd = -1;
- char *bus_str = extract_programmer_param_str(NULL, "bus");
- char *device_path = extract_programmer_param_str(NULL, "devpath");
+ char *bus_str = extract_programmer_param_str(cfg, "bus");
+ char *device_path = extract_programmer_param_str(cfg, "devpath");
if (device_path != NULL && bus_str != NULL) {
msg_perr("%s: only one of bus and devpath may be specified\n", __func__);