# Re: \[PATCH\] bma023: Support for Bosch BMA023, BMA150 and SMB380 accelerometers

- From: Alan Cox \<hidden\>
- Date: 2011-02-22 11:28:30 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2011/02/8916210
- Thread: https://ratatoskr.run/linux-input/2011/02/8916138/t.md

```text
> > +What:		/sys/bus/i2c/devices/<busnum>-<devaddr>/range
> > +Date:		February 2011
> > +Contact:	Alan Cox [ref]
> > +Description:	Configure the sensing range of the device
> > +		0: +/- 2G
> > +		1: +/- 4G
> > +		2: +/- 8G
> Why the magic numbers? It would be trivial to just use the actual values so
> why not do so?

That seems sensible, especially if other variants then decided to do
other frequencies

> > +		(See the equations in the data sheet)
> If possible, please direct people to a particular equation. Or given these

There is a datasheet link for the BMA150 in the driver now.

I don't think duplicating the notes actually helps because you really
need the data sheet to do the job anyway and it avoids duplicating stuff
that may then go stale.
```
