Compile this driver with:
echo "obj-m := tiny_i2c_adap.o" > Makefile make -C SUBDIRS=$PWD modules
Makefile: obj-m := tiny_i2c_adap.o
Error : prashanth@prashanth-Lenovo-ideapad-520-15IKB:~$ make -C /usr/src/linux-headers-$(uname -r) M=$PWD modules make: Entering directory '/usr/src/linux-headers-5.1.7-050107-generic' make[1]: * No rule to make target '/home/prashanth/tiny_i2c_adap.c', needed by '/home/prashanth/tiny_i2c_adap.o'. Stop. Makefile:1571: recipe for target 'module/home/prashanth' failed make: * [module/home/prashanth] Error 2 make: Leaving directory '/usr/src/linux-headers-5.1.7-050107-generic'
tiny_i2c_adap.c
). You are not doing so. – John Bollinger