From mboxrd@z Thu Jan 1 00:00:00 1970 From: sjg at google.com Date: Tue, 9 Oct 2018 16:55:18 -0700 Subject: [U-Boot] [PATCH 18/45] cros: Update cros_ec code to use struct udevice In-Reply-To: <20181001182249.129565-19-sjg@chromium.org> References: <20181001182249.129565-19-sjg@chromium.org> <20181001182249.129565-1-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de At present we pass around a private pointer to specify the cros_ec device. With driver model it makes more sense to pass the device. Update the code to do this. Signed-off-by: Simon Glass --- cmd/cros_ec.c | 24 +++--- drivers/misc/cros_ec.c | 147 +++++++++++++++++---------------- drivers/misc/cros_ec_sandbox.c | 4 +- drivers/tpm/tpm-uclass.c | 6 +- include/cros_ec.h | 66 +++++++-------- 5 files changed, 122 insertions(+), 125 deletions(-) Applied to u-boot-dm