/* READ a byte from the NVRAM and then send an ACK to say we have got it, GPIO0 must already be set as an input  */
static void S24C16_read_byte(struct sym_device *np, u_char *read_data, u_char ack_data, u_char *gpreg, u_char *gpcntl)
/* READ a byte from the NVRAM and then send an ACK to say we have got it, GPIO0 must already be set as an input  */
static void S24C16_read_byte(struct sym_device *np, u_char *read_data, u_char ack_data, u_char *gpreg, u_char *gpcntl)
{
	int x;
	u_char read_bit;
	*read_data = 0;
	for (x = 0; x < 8; x++) {
		S24C16_do_bit(np, &read_bit, 1, gpreg);
		*read_data |= ((read_bit & 0x01) << (7 - x));
	}
	S24C16_write_ack(np, ack_data, gpreg, gpcntl);
}