I am trying to implement an application that will allow me to access the i2c bus from the user space similar to this https://www.kernel.org/doc/Documentation/i2c/dev-interface. Here it is stated that using smbus commands is preferred over using simple i2c read /write .Could someone please help me with why is this the case.
Also to use smbus commands ,I got away with simply including these files in my header
https://fossies.org/linux/i2c-tools/lib/smbus.c
and https://fossies.org/linux/i2c-tools/include/i2c/smbus.h
as SMBus functions are no longer defined in "linux/i2c-dev.h".
Reference : https://github.com/hallard/ArduiPi_OLED/issues/15.
Is there a better way of achieving this functionality ?
Also why have the SMBus methods have been removed from "linux/i2c-dev.h"