@@ -756,7 +756,7 @@ static ssize_t swap_xy_show(struct device *dev, struct device_attribute *attr,
756756 struct i2c_client * client = to_i2c_client (dev );
757757 struct rohm_ts_data * ts = i2c_get_clientdata (client );
758758
759- return sprintf (buf , "%d\n" , !!(ts -> setup2 & SWAP_XY ));
759+ return sysfs_emit (buf , "%d\n" , !!(ts -> setup2 & SWAP_XY ));
760760}
761761
762762static ssize_t swap_xy_store (struct device * dev , struct device_attribute * attr ,
@@ -781,7 +781,7 @@ static ssize_t inv_x_show(struct device *dev, struct device_attribute *attr,
781781 struct i2c_client * client = to_i2c_client (dev );
782782 struct rohm_ts_data * ts = i2c_get_clientdata (client );
783783
784- return sprintf (buf , "%d\n" , !!(ts -> setup2 & INV_X ));
784+ return sysfs_emit (buf , "%d\n" , !!(ts -> setup2 & INV_X ));
785785}
786786
787787static ssize_t inv_x_store (struct device * dev , struct device_attribute * attr ,
@@ -806,7 +806,7 @@ static ssize_t inv_y_show(struct device *dev, struct device_attribute *attr,
806806 struct i2c_client * client = to_i2c_client (dev );
807807 struct rohm_ts_data * ts = i2c_get_clientdata (client );
808808
809- return sprintf (buf , "%d\n" , !!(ts -> setup2 & INV_Y ));
809+ return sysfs_emit (buf , "%d\n" , !!(ts -> setup2 & INV_Y ));
810810}
811811
812812static ssize_t inv_y_store (struct device * dev , struct device_attribute * attr ,
0 commit comments