]>
git.ipfire.org Git - people/ms/u-boot.git/blob - drivers/spi/spi.c
2 * Copyright (c) 2011 The Chromium OS Authors.
4 * SPDX-License-Identifier: GPL-2.0+
11 void *spi_do_alloc_slave(int offset
, int size
, unsigned int bus
,
14 struct spi_slave
*slave
;
19 memset(ptr
, '\0', size
);
20 slave
= (struct spi_slave
*)(ptr
+ offset
);