[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1f6b9bcd-f93c-4fa6-3abf-762d54c63dc0@linux.intel.com>
Date: Fri, 21 Sep 2018 15:46:42 -0700
From: Jae Hyun Yoo <jae.hyun.yoo@...ux.intel.com>
To: Brendan Higgins <brendanhiggins@...gle.com>,
benh@...nel.crashing.org, joel@....id.au, andrew@...id.au
Cc: openbmc@...ts.ozlabs.org, linux-i2c@...r.kernel.org,
linux-aspeed@...ts.ozlabs.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] i2c: aspeed: fix invalid clock parameters for very
large divisors
On 9/21/2018 3:34 PM, Brendan Higgins wrote:
> @@ -142,7 +142,8 @@ struct aspeed_i2c_bus {
> /* Synchronizes I/O mem access to base. */
> spinlock_t lock;
> struct completion cmd_complete;
> - u32 (*get_clk_reg_val)(u32 divisor);
> + u32 (*get_clk_reg_val)(struct device *dev,
> + u32 divisor);
I realized that you changed *get_clk_reg_val type in v2. You probably
need to fix below code in aspeed_i2c_probe_bus() as well to remove
a sparse warning.
bus->get_clk_reg_val = (u32 (*)(u32))match->data;
-Jae
Powered by blists - more mailing lists