ads7924: fix the sysfs interface

When the ads7924 kernel module was updated to build against the 5.4
kernel, I failed to test the sysfs interface.  Upon later testing,
writing to the enable file would cause a kernel panic because the struct
device passed into the sysfs store and show functions wasn't actually an
i2c_client, it's instead a hwmon device.  Fix this by using
dev_get_drvdata in all the places we previously did the same from the
struct i2c_client.

Also remove the setup for the sysfs interface since this is now handled
with hwmon core.

Change-Id: I0b43a1fcbf7495e215fc32088bfcb2c88f46e3ce
1 file changed
tree: 925283a6351bec30ef74bd06e4e56d01709becee
  1. client_data_usage/
  2. cpmodem_shim/
  3. pse/
  4. qcom-adc/
  5. .gitignore