X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=device.c;h=5f8d5ed2a0f423cce66a4a1520b626ec81808fe4;hb=c496ac97a83aa33dd2add8074c454b7dc1b08fe6;hp=24ec602f90a21686bb42da96d712af4df36b73c3;hpb=c09f0b578c0e9c03590cb814f66004bb3f6815ff;p=libsigrok.git diff --git a/device.c b/device.c index 24ec602f..5f8d5ed2 100644 --- a/device.c +++ b/device.c @@ -238,8 +238,6 @@ SR_API struct sr_probe *sr_dev_probe_find(const struct sr_dev *dev, * If the probe already has a different name assigned to it, it will be * removed, and the new name will be saved instead. * - * TODO: Rename to sr_dev_probe_name_set(). - * * @param dev TODO * @param probenum The number of the probe whose name to set. * Note that the probe numbers start at 1 (not 0!). @@ -249,8 +247,8 @@ SR_API struct sr_probe *sr_dev_probe_find(const struct sr_dev *dev, * upon other errors. * If something other than SR_OK is returned, 'dev' is unchanged. */ -SR_API int sr_dev_probe_name(struct sr_dev *dev, int probenum, - const char *name) +SR_API int sr_dev_probe_name_set(struct sr_dev *dev, int probenum, + const char *name) { struct sr_probe *p;