2014-12-16 14:21 GMT+01:00 tito <[email protected]>:
> Hi,
> seems to me that i2cget and i2cset share a lot of code,
> couldn't they be condensed in one applet like it is
> done for example in  deluser.c:
>
> int do_deluser = (ENABLE_DELUSER && (!ENABLE_DELGROUP || applet_name[3] == 
> 'u'));
>

Actually it's rather i2cdump which shares code with i2cset. The only
code shared between i2cset and i2cget is the argument parsing and
address/bus lookups which indeed can probably be moved to a single
function but I'll get to such optimizations later on after finishing
i2cdetect.

Bart
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to