/* Return: 0 if write operation was successful, -ve on error  */
static int aux_write(struct udevice *dev, u32 dpcd_address, u32 bytes_to_write, void *write_data)
/* Return: 0 if write operation was successful, -ve on error  */
static int aux_write(struct udevice *dev, u32 dpcd_address, u32 bytes_to_write, void *write_data)
{
	int status;
	if (!is_connected(dev))
		return -ENODEV;
	status = aux_common(dev, AUX_CMD_WRITE, dpcd_address,
			    bytes_to_write, (u8 *)write_data);
	return status;
}