Date: Sat, 27 Dec 2014 20:06:17 +0000 (UTC) From: Luiz Otavio O Souza <loos@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r276316 - head/sys/arm/ti Message-ID: <201412272006.sBRK6Hh2075800@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: loos Date: Sat Dec 27 20:06:16 2014 New Revision: 276316 URL: https://svnweb.freebsd.org/changeset/base/276316 Log: Remove unnecessary code and, instead, use the provided iicbus_null_callback callback. Modified: head/sys/arm/ti/ti_i2c.c Modified: head/sys/arm/ti/ti_i2c.c ============================================================================== --- head/sys/arm/ti/ti_i2c.c Sat Dec 27 19:56:04 2014 (r276315) +++ head/sys/arm/ti/ti_i2c.c Sat Dec 27 20:06:16 2014 (r276316) @@ -473,38 +473,6 @@ out: return (err); } -/** - * ti_i2c_callback - as we only provide iicbus_transfer() interface - * we don't need to implement the serialization here. - * @dev: i2c device handle - * - * - * - * LOCKING: - * Called from timer context - * - * RETURNS: - * EH_HANDLED or EH_NOT_HANDLED - */ -static int -ti_i2c_callback(device_t dev, int index, caddr_t data) -{ - int error = 0; - - switch (index) { - case IIC_REQUEST_BUS: - break; - - case IIC_RELEASE_BUS: - break; - - default: - error = EINVAL; - } - - return (error); -} - static int ti_i2c_reset(struct ti_i2c_softc *sc, u_char speed) { @@ -955,7 +923,7 @@ static device_method_t ti_i2c_methods[] DEVMETHOD(ofw_bus_get_node, ti_i2c_get_node), /* iicbus interface */ - DEVMETHOD(iicbus_callback, ti_i2c_callback), + DEVMETHOD(iicbus_callback, iicbus_null_callback), DEVMETHOD(iicbus_reset, ti_i2c_iicbus_reset), DEVMETHOD(iicbus_transfer, ti_i2c_transfer),
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412272006.sBRK6Hh2075800>