Skip to contentSkip to conversation

usb: typec: tps6598x: Check mode of operation

DISCUSSION Heikki Krogerus 1 participant 1 message Feb 14, 2019 USB

lore
Share & tools
lore
#0 lore raw

Hi Sergei,

Quoted 8 lines · Sergei Shtylyov

Review

Quoted 6 lines
(quoted diff) +6 -0
+static int tps6598x_check_mode(struct tps6598x *tps)
+{
+	char mode[5] = { };
+	int ret;
+
+	ret = tps6598x_read32(tps, TPS_REG_MODE, (void *)mode);

Casting pointers to 'void *' happens automagically, doesn't i?

The third parameter in tps6598x_read32() is 'u32 *'.

thanks,