int ret, exponent;
struct asycii_info *info_local;
- info_local = (struct asycii_info *)info;
+ info_local = info;
/* Don't print byte 15. That one contains the carriage return. */
sr_dbg("DMM packet: \"%.15s\"", buf);
int ret, exponent = 0;
struct dtm0660_info *info_local;
- info_local = (struct dtm0660_info *)info;
+ info_local = info;
if ((ret = parse_value(buf, floatval, &exponent)) != SR_OK) {
sr_dbg("Error parsing value: %d.", ret);
int ret, exponent = 0;
struct fs9721_info *info_local;
- info_local = (struct fs9721_info *)info;
+ info_local = info;
if ((ret = parse_value(buf, floatval, &exponent)) != SR_OK) {
sr_dbg("Error parsing value: %d.", ret);
{
struct fs9721_info *info_local;
- info_local = (struct fs9721_info *)info;
+ info_local = info;
/* User-defined FS9721_LP3 flag 'c2c1_00' means temperature (C). */
if (info_local->is_c2c1_00) {
{
struct fs9721_info *info_local;
- info_local = (struct fs9721_info *)info;
+ info_local = info;
/* User-defined FS9721_LP3 flag 'c2c1_01' means temperature (C). */
if (info_local->is_c2c1_01) {
{
struct fs9721_info *info_local;
- info_local = (struct fs9721_info *)info;
+ info_local = info;
/* User-defined FS9721_LP3 flag 'c2c1_10' means temperature (C). */
if (info_local->is_c2c1_10) {
{
struct fs9721_info *info_local;
- info_local = (struct fs9721_info *)info;
+ info_local = info;
/* User-defined FS9721_LP3 flag 'c2c1_01' means temperature (F). */
if (info_local->is_c2c1_01) {
{
struct fs9721_info *info_local;
- info_local = (struct fs9721_info *)info;
+ info_local = info;
/* User-defined FS9721_LP3 flag 'c2c1_00' means MAX. */
if (info_local->is_c2c1_00)
int ret, exponent = 0;
struct fs9922_info *info_local;
- info_local = (struct fs9922_info *)info;
+ info_local = info;
if ((ret = parse_value(buf, floatval, &exponent)) != SR_OK) {
sr_dbg("Error parsing value: %d.", ret);
{
struct fs9922_info *info_local;
- info_local = (struct fs9922_info *)info;
+ info_local = info;
/* User-defined z1 flag means "diode mode". */
if (info_local->is_z1) {
int ret, exponent = 0;
struct metex14_info *info_local;
- info_local = (struct metex14_info *)info;
+ info_local = info;
/* Don't print byte 13. That one contains the carriage return. */
sr_dbg("DMM packet: \"%.13s\"", buf);
int ret, exponent = 0;
struct ut71x_info *info_local;
- info_local = (struct ut71x_info *)info;
+ info_local = info;
memset(info_local, 0, sizeof(struct ut71x_info));
if (!sr_ut71x_packet_valid(buf))
int ret, exponent = 0;
struct vc870_info *info_local;
- info_local = (struct vc870_info *)info;
+ info_local = info;
memset(info_local, 0, sizeof(struct vc870_info));
if (!sr_vc870_packet_valid(buf))