| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ADXL345 3-Axis Digital Accelerometer IIO core driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 2017 Eva Rachel Retuya <eraretuya@gmail.com> |
|---|
| 5 | 6 | * |
|---|
| 6 | | - * This file is subject to the terms and conditions of version 2 of |
|---|
| 7 | | - * the GNU General Public License. See the file COPYING in the main |
|---|
| 8 | | - * directory of this archive for more details. |
|---|
| 9 | | - * |
|---|
| 10 | | - * Datasheet: http://www.analog.com/media/en/technical-documentation/data-sheets/ADXL345.pdf |
|---|
| 7 | + * Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/ADXL345.pdf |
|---|
| 11 | 8 | */ |
|---|
| 12 | 9 | |
|---|
| 13 | 10 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 150 | 147 | } |
|---|
| 151 | 148 | |
|---|
| 152 | 149 | static int adxl345_write_raw(struct iio_dev *indio_dev, |
|---|
| 153 | | - struct iio_chan_spec const *chan, |
|---|
| 154 | | - int val, int val2, long mask) |
|---|
| 150 | + struct iio_chan_spec const *chan, |
|---|
| 151 | + int val, int val2, long mask) |
|---|
| 155 | 152 | { |
|---|
| 156 | 153 | struct adxl345_data *data = iio_priv(indio_dev); |
|---|
| 157 | 154 | s64 n; |
|---|
| .. | .. |
|---|
| 249 | 246 | return ret; |
|---|
| 250 | 247 | } |
|---|
| 251 | 248 | |
|---|
| 252 | | - indio_dev->dev.parent = dev; |
|---|
| 253 | 249 | indio_dev->name = name; |
|---|
| 254 | 250 | indio_dev->info = &adxl345_info; |
|---|
| 255 | 251 | indio_dev->modes = INDIO_DIRECT_MODE; |
|---|