touchscreen: cleanup S2W code