Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 7257
b: refs/heads/master
c: 9d88347
h: refs/heads/master
i:
  7255: 7a21ac2
v: v3
  • Loading branch information
Russell King authored and Russell King committed Sep 5, 2005
1 parent aaa72b9 commit 6c78669
Show file tree
Hide file tree
Showing 1,045 changed files with 24,264 additions and 18,728 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ef88b7dba2b47c70037a34a599d383462bb74bd3
refs/heads/master: 9d88347758c58ee5b4ac9cd594b96eaafa5e08bb
1 change: 0 additions & 1 deletion trunk/Documentation/crypto/api-intro.txt
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ CAST5 algorithm contributors:

TEA/XTEA algorithm contributors:
Aaron Grothe
Michael Ringe

Khazad algorithm contributors:
Aaron Grothe
Expand Down
10 changes: 10 additions & 0 deletions trunk/Documentation/feature-removal-schedule.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ Who: Jody McIntyre <scjody@steamballoon.com>

---------------------------

What: register_serial/unregister_serial
When: September 2005
Why: This interface does not allow serial ports to be registered against
a struct device, and as such does not allow correct power management
of such ports. 8250-based ports should use serial8250_register_port
and serial8250_unregister_port, or platform devices instead.
Who: Russell King <rmk@arm.linux.org.uk>

---------------------------

What: i2c sysfs name change: in1_ref, vid deprecated in favour of cpu0_vid
When: November 2005
Files: drivers/i2c/chips/adm1025.c, drivers/i2c/chips/adm1026.c
Expand Down
1 change: 0 additions & 1 deletion trunk/Documentation/filesystems/proc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ Table 1-1: Process specific entries in /proc
statm Process memory status information
status Process status in human readable form
wchan If CONFIG_KALLSYMS is set, a pre-decoded wchan
smaps Extension based on maps, presenting the rss size for each mapped file
..............................................................................

For example, to get the status information of a process, all you have to do is
Expand Down
28 changes: 14 additions & 14 deletions trunk/Documentation/filesystems/sysfs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void device_remove_file(struct device *, struct device_attribute *);

It also defines this helper for defining device attributes:

#define DEVICE_ATTR(_name, _mode, _show, _store) \
#define DEVICE_ATTR(_name,_mode,_show,_store) \
struct device_attribute dev_attr_##_name = { \
.attr = {.name = __stringify(_name) , .mode = _mode }, \
.show = _show, \
Expand All @@ -99,14 +99,14 @@ struct device_attribute dev_attr_##_name = { \

For example, declaring

static DEVICE_ATTR(foo, S_IWUSR | S_IRUGO, show_foo, store_foo);
static DEVICE_ATTR(foo,0644,show_foo,store_foo);

is equivalent to doing:

static struct device_attribute dev_attr_foo = {
.attr = {
.name = "foo",
.mode = S_IWUSR | S_IRUGO,
.mode = 0644,
},
.show = show_foo,
.store = store_foo,
Expand All @@ -121,8 +121,8 @@ set of sysfs operations for forwarding read and write calls to the
show and store methods of the attribute owners.

struct sysfs_ops {
ssize_t (*show)(struct kobject *, struct attribute *, char *);
ssize_t (*store)(struct kobject *, struct attribute *, const char *);
ssize_t (*show)(struct kobject *, struct attribute *,char *);
ssize_t (*store)(struct kobject *,struct attribute *,const char *);
};

[ Subsystems should have already defined a struct kobj_type as a
Expand All @@ -137,7 +137,7 @@ calls the associated methods.

To illustrate:

#define to_dev_attr(_attr) container_of(_attr, struct device_attribute, attr)
#define to_dev_attr(_attr) container_of(_attr,struct device_attribute,attr)
#define to_dev(d) container_of(d, struct device, kobj)

static ssize_t
Expand All @@ -148,7 +148,7 @@ dev_attr_show(struct kobject * kobj, struct attribute * attr, char * buf)
ssize_t ret = 0;

if (dev_attr->show)
ret = dev_attr->show(dev, buf);
ret = dev_attr->show(dev,buf);
return ret;
}

Expand Down Expand Up @@ -216,16 +216,16 @@ A very simple (and naive) implementation of a device attribute is:

static ssize_t show_name(struct device *dev, struct device_attribute *attr, char *buf)
{
return snprintf(buf, PAGE_SIZE, "%s\n", dev->name);
return sprintf(buf,"%s\n",dev->name);
}

static ssize_t store_name(struct device * dev, const char * buf)
{
sscanf(buf, "%20s", dev->name);
return strnlen(buf, PAGE_SIZE);
sscanf(buf,"%20s",dev->name);
return strlen(buf);
}

static DEVICE_ATTR(name, S_IRUGO, show_name, store_name);
static DEVICE_ATTR(name,S_IRUGO,show_name,store_name);


(Note that the real implementation doesn't allow userspace to set the
Expand Down Expand Up @@ -290,7 +290,7 @@ struct device_attribute {

Declaring:

DEVICE_ATTR(_name, _str, _mode, _show, _store);
DEVICE_ATTR(_name,_str,_mode,_show,_store);

Creation/Removal:

Expand All @@ -310,7 +310,7 @@ struct bus_attribute {

Declaring:

BUS_ATTR(_name, _mode, _show, _store)
BUS_ATTR(_name,_mode,_show,_store)

Creation/Removal:

Expand All @@ -331,7 +331,7 @@ struct driver_attribute {

Declaring:

DRIVER_ATTR(_name, _mode, _show, _store)
DRIVER_ATTR(_name,_mode,_show,_store)

Creation/Removal:

Expand Down
7 changes: 6 additions & 1 deletion trunk/Documentation/hwmon/lm78
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@ Kernel driver lm78
==================

Supported chips:
* National Semiconductor LM78 / LM78-J
* National Semiconductor LM78
Prefix: 'lm78'
Addresses scanned: I2C 0x20 - 0x2f, ISA 0x290 (8 I/O ports)
Datasheet: Publicly available at the National Semiconductor website
http://www.national.com/
* National Semiconductor LM78-J
Prefix: 'lm78-j'
Addresses scanned: I2C 0x20 - 0x2f, ISA 0x290 (8 I/O ports)
Datasheet: Publicly available at the National Semiconductor website
http://www.national.com/
* National Semiconductor LM79
Prefix: 'lm79'
Addresses scanned: I2C 0x20 - 0x2f, ISA 0x290 (8 I/O ports)
Expand Down
174 changes: 0 additions & 174 deletions trunk/Documentation/hwmon/w83792d

This file was deleted.

Loading

0 comments on commit 6c78669

Please sign in to comment.