From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754796AbcHASQr (ORCPT ); Mon, 1 Aug 2016 14:16:47 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36370 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754654AbcHASQZ (ORCPT ); Mon, 1 Aug 2016 14:16:25 -0400 From: Tal Shorer To: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org Cc: linux-kernel@vger.kernel.org, heikki.krogerus@linux.intel.com, balbi@kernel.org, Tal Shorer Subject: [PATCH v2 02/10] usb: ulpi: add new api functions, {read|write}_dev() Date: Mon, 1 Aug 2016 21:15:50 +0300 Message-Id: <1470075358-19792-3-git-send-email-tal.shorer@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1470075358-19792-1-git-send-email-tal.shorer@gmail.com> References: <1470075358-19792-1-git-send-email-tal.shorer@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add these two new api callbacks to struct ulpi_ops. These are different than read, write in that they pass the parent device directly instead of via the ops argument. They are intended to replace the old api functions. Signed-off-by: Tal Shorer --- include/linux/ulpi/interface.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/ulpi/interface.h b/include/linux/ulpi/interface.h index 4de8ab4..d8189d0 100644 --- a/include/linux/ulpi/interface.h +++ b/include/linux/ulpi/interface.h @@ -15,6 +15,8 @@ struct ulpi_ops { struct device *dev; int (*read)(struct ulpi_ops *ops, u8 addr); int (*write)(struct ulpi_ops *ops, u8 addr, u8 val); + int (*read_dev)(struct device *dev, u8 addr); + int (*write_dev)(struct device *dev, u8 addr, u8 val); }; struct ulpi *ulpi_register_interface(struct device *, struct ulpi_ops *); -- 2.7.4