lis3lv02d_spi.c (f01387d2693813eb5271a3448e6a082322c7d75d) lis3lv02d_spi.c (6893d9b51093cf499ee6217e98c50006ec2727c6)
1/*
2 * lis3lv02d_spi - SPI glue layer for lis3lv02d
3 *
4 * Copyright (c) 2009 Daniel Mack <daniel@caiaq.de>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * publishhed by the Free Software Foundation.

--- 47 unchanged lines hidden (view full) ---

56 reg |= CTRL1_PD0 | CTRL1_Xen | CTRL1_Yen | CTRL1_Zen;
57 return lis3->write(lis3, CTRL_REG1, reg);
58}
59
60static union axis_conversion lis3lv02d_axis_normal =
61 { .as_array = { 1, 2, 3 } };
62
63#ifdef CONFIG_OF
1/*
2 * lis3lv02d_spi - SPI glue layer for lis3lv02d
3 *
4 * Copyright (c) 2009 Daniel Mack <daniel@caiaq.de>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * publishhed by the Free Software Foundation.

--- 47 unchanged lines hidden (view full) ---

56 reg |= CTRL1_PD0 | CTRL1_Xen | CTRL1_Yen | CTRL1_Zen;
57 return lis3->write(lis3, CTRL_REG1, reg);
58}
59
60static union axis_conversion lis3lv02d_axis_normal =
61 { .as_array = { 1, 2, 3 } };
62
63#ifdef CONFIG_OF
64static struct of_device_id lis302dl_spi_dt_ids[] = {
64static const struct of_device_id lis302dl_spi_dt_ids[] = {
65 { .compatible = "st,lis302dl-spi" },
66 {}
67};
68MODULE_DEVICE_TABLE(of, lis302dl_spi_dt_ids);
69#endif
70
71static int lis302dl_spi_probe(struct spi_device *spi)
72{

--- 82 unchanged lines hidden ---
65 { .compatible = "st,lis302dl-spi" },
66 {}
67};
68MODULE_DEVICE_TABLE(of, lis302dl_spi_dt_ids);
69#endif
70
71static int lis302dl_spi_probe(struct spi_device *spi)
72{

--- 82 unchanged lines hidden ---