aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/hash.h
stat options
Period:
Authors:

Commits per author per week (path 'fs/btrfs/hash.h')

AuthorW34 2025W35 2025W36 2025W37 2025Total
Total00000
.h> #include <linux/gpio.h> #include <linux/spi/spi.h> #include <linux/mfd/core.h> #include <linux/mfd/tps65912.h> static int tps65912_spi_write(struct tps65912 *tps65912, u8 addr, int bytes, void *src) { struct spi_device *spi = tps65912->control_data; u8 *data = (u8 *) src; int ret; /* bit 23 is the read/write bit */ unsigned long spi_data = 1 << 23 | addr << 15 | *data; struct spi_transfer xfer; struct spi_message msg; u32 tx_buf, rx_buf; tx_buf = spi_data; rx_buf = 0; xfer.tx_buf = &tx_buf; xfer.rx_buf = NULL; xfer.len = sizeof(unsigned long); xfer.bits_per_word = 24; spi_message_init(&msg); spi_message_add_tail(&xfer, &msg); ret = spi_sync(spi, &msg); return ret; } static int tps65912_spi_read(struct tps65912 *tps65912, u8 addr, int bytes, void *dest) { struct spi_device *spi = tps65912->control_data; /* bit 23 is the read/write bit */ unsigned long spi_data = 0 << 23 | addr << 15;