From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754073AbbFEA1L (ORCPT ); Thu, 4 Jun 2015 20:27:11 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:34215 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752486AbbFEA1I (ORCPT ); Thu, 4 Jun 2015 20:27:08 -0400 Message-ID: <1433464023.7054.1.camel@ingics.com> Subject: [PATCH] phy: ulpi_phy: Add const qualifier to ops From: Axel Lin To: Kishon Vijay Abraham I , Felipe Balbi Cc: David Cohen , linux-kernel@vger.kernel.org, "linux-usb@vger.kernel.org" Date: Fri, 05 Jun 2015 08:27:03 +0800 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ops is never changed in ulpi_phy_create(), so make it const. Signed-off-by: Axel Lin --- drivers/phy/ulpi_phy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/ulpi_phy.h b/drivers/phy/ulpi_phy.h index ac49fb6..f2ebe49 100644 --- a/drivers/phy/ulpi_phy.h +++ b/drivers/phy/ulpi_phy.h @@ -5,7 +5,7 @@ * and it's controller, which is always the parent. */ static inline struct phy -*ulpi_phy_create(struct ulpi *ulpi, struct phy_ops *ops) +*ulpi_phy_create(struct ulpi *ulpi, const struct phy_ops *ops) { struct phy *phy; int ret; -- 2.1.0