*** empty log message ***
This commit is contained in:
parent
1b20b042c0
commit
16578f57e9
|
@ -19,10 +19,13 @@
|
|||
*/
|
||||
|
||||
|
||||
#include "core.h"
|
||||
#include <linux/isdn/capidevice.h>
|
||||
#include <linux/isdn/capiutil.h>
|
||||
|
||||
|
||||
void release_capi_device (struct class_device* cd);
|
||||
|
||||
|
||||
static ssize_t
|
||||
show_manufacturer(struct class_device* cd, char* buf)
|
||||
{
|
||||
|
@ -60,6 +63,7 @@ static struct class_device_attribute* attrs[] = {
|
|||
static ssize_t
|
||||
read_profile(struct kobject* kobj, char* buf, loff_t pos, size_t size)
|
||||
{
|
||||
extern int nr_capi_devices;
|
||||
const int CAPI_PROFILE_LEN = 64;
|
||||
char b[CAPI_PROFILE_LEN];
|
||||
struct capi_profile* p;
|
||||
|
@ -72,7 +76,7 @@ read_profile(struct kobject* kobj, char* buf, loff_t pos, size_t size)
|
|||
|
||||
p = &to_capi_device(container_of(kobj, struct class_device, kobj))->profile;
|
||||
|
||||
capimsg_setu16(b, 0, nr_capi_devices());
|
||||
capimsg_setu16(b, 0, nr_capi_devices);
|
||||
capimsg_setu16(b, 2, p->nbchannel);
|
||||
memcpy(b + 4, &p->goptions, 4);
|
||||
memcpy(b + 8, &p->support1, 4);
|
||||
|
|
Loading…
Reference in New Issue